// 自动生成模板Arts package app import ( "ln/nft/global" ) // Arts 结构体 type Arts struct { global.GVA_MODEL Name string `json:"name" form:"name" gorm:"column:name;comment:作品名称;size:191;"` Type *bool `json:"type" form:"type" gorm:"column:type;comment:1:图片 2:视频;"` Url string `json:"url" form:"url" gorm:"column:url;comment:作品地址;size:191;"` ArtIntro string `json:"artIntro" form:"artIntro" gorm:"column:art_intro;comment:作品简介;size:30;"` ArtDesc string `json:"artDesc" form:"artDesc" gorm:"column:art_desc;comment:作品描述;size:500;"` ArtistDesc string `json:"artistDesc" form:"artistDesc" gorm:"column:artist_desc;comment:艺术家描述;size:255;"` Tags string `json:"tags" form:"tags" gorm:"column:tags;comment:作品标签;size:191;"` EquityId *int `json:"equityId" form:"equityId" gorm:"column:equity_id;comment:权益类型;size:10;"` IsObj *bool `json:"isObj" form:"isObj" gorm:"column:is_obj;comment:实物;"` Price *int `json:"price" form:"price" gorm:"column:price;comment:价格;size:10;"` CreateUserId *int `json:"createUserId" form:"createUserId" gorm:"column:create_user_id;comment:创建用户ID;size:19;"` OwnerUserId *int `json:"ownerUserId" form:"ownerUserId" gorm:"column:owner_user_id;comment:所属用户ID;size:19;"` Token string `json:"token" form:"token" gorm:"column:token;comment:藏品唯一标识;size:191;"` IsConsign *bool `json:"isConsign" form:"isConsign" gorm:"column:is_consign;comment:寄售;"` } // TableName Arts 表名 func (Arts) TableName() string { return "user_arts" }