123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- package entity
- import "time"
- type PosterInfoRequest struct {
- PosterID int64 `form:"id" binding:"required"`
- }
- type UserPosterInfo struct {
- Code ResCode
- Msg string
- Body UserPoster
- }
- type UserPosterInfoForApi struct {
- Code ResCode
- Msg string
- Body struct {
- Poster UserPoster `json:"poster"`
- }
- }
- type UserPostersForApi struct {
- Code ResCode `json:"code"`
- Msg string `json:"msg"`
- Body map[string][]PostersListForApi `json:"body"`
- }
- type PostersListForApi struct {
- Id int64 `json:"id"`
- Name string `json:"name"`
- Preview string `json:"preview"`
- Status int64 `json:"status"`
- Visits int64 `json:"visits"`
- CreateAt time.Time `json:"createTime"`
- }
- type UserPoster struct {
- PosterID int64 `gorm:"column:poster_id" json:"id"`
- Name string `gorm:"column:poster_name" json:"name"`
- UUID string `gorm:"column:uuid" json:"uuid"`
- Uid int64 `gorm:"column:uid" json:"uid"`
- PosterKeywords string `gorm:"column:poster_keywords" json:"poster_Keywords"`
- PosterJson string `gorm:"column:poster_json" json:"json"`
- Preview string `gorm:"column:preview" json:"preview"`
- Visit string `gorm:"column:visit" json:"visit"`
- Status string `gorm:"column:status;default:1" json:"status"`
- CreateAt time.Time `gorm:"column:create_at" json:"create_at"`
- UpdateAt time.Time `gorm:"column:update_at;default:CURRENT_TIMESTAMP" json:"update_at"`
- }
- type PosterJson struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Width uint `json:"w"`
- Height uint `json:"h"`
- Use string `json:"use"`
- Background string `json:"bgc"`
- BackgroundUrl string `json:"bgUrl"`
- Type string `json:"type"`
- Quality int `json:"quality"`
- Scale float64 `json:"scale"`
- Key string `json:"key"`
- Items []Items `json:"items"`
- }
- type Items struct {
- Type string `json:"t"`
- Remark string `json:"name"`
- UUID string `json:"uuid"`
- X int `json:"x"`
- Y int `json:"y"`
- Width uint `json:"w"`
- Height uint `json:"h"`
- ZIndex int `json:"z"`
- Angle int `json:"angle"`
- Size int `json:"s"`
- Color string `json:"c"`
- Background string `json:"bgc"`
- Value string `json:"v"`
- Name string `json:"vd"`
- Font string `json:"fn"`
- St int `json:"st"`
- Active bool `json:"active"`
- Lock bool `json:"lock"`
- AspectRatio bool `json:"aspectRatio"`
- P int `json:"p,omitempty"`
- Align *string `json:"a,omitempty"`
- Wrap *bool `json:"wrap,omitempty"`
- Bius *string `json:"bius,omitempty"`
- }
|