| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package model
- type PropertyImage struct {
- ID int `json:"id" gorm:"not null;"`
- Name string `json:"name" gorm:"not null;"`
- LocalPath string `json:"local_path" gorm:"not null;"`
- Gid string `json:"gid" gorm:"not null; column:gid;"`
- Pid string `json:"pid" gorm:"not null; column:pid;"`
- WxId string `json:"wx_id" gorm:"not null; column:wx_id;"`
- ImageWidth int `json:"image_width"`
- ImageHeight int `json:"image_height"`
- ImageFileSize int `json:"image_file_size"`
- ImageType string `json:"image_type"`
- ImageSignature string `json:"image_signature"`
- IsImg9 int `json:"isImg9" gorm:"not null; column:is_img9;"`
- Resolution string `json:"resolution" gorm:"not null; column:resolution;"`
- CreatedAt XTime `json:"createdAt" gorm:"column:createdAt;"`
- UpdatedAt XTime `json:"updatedAt" gorm:"column:updatedAt;"`
- }
- type PropertyTag struct {
- ID int `json:"id" gorm:"not null;"`
- Name string `json:"name" gorm:"not null;"`
- CreatedAt XTime `json:"createdAt" gorm:"column:createdAt;"`
- }
- func (*PropertyTag) TableName() string {
- return "property_tag"
- }
- type PropertyImageTag struct {
- ImageId int `json:"image_id" gorm:"not null;"`
- TagId int `json:"tag_id" gorm:"not null;"`
- }
- type PropertyVideo struct {
- ID int `json:"id" gorm:"not null;"`
- Name string `json:"name" gorm:"not null;"`
- Gid string `json:"gid" gorm:"not null; column:gid;"`
- Pid string `json:"pid" gorm:"not null; column:pid;"`
- WxId int `json:"wx_id" gorm:"not null; column:wx_id;"`
- VideoSignature string `json:"video_signature" gorm:"not null; column:video_signature;"`
- LocalPath string `json:"local_path" gorm:"not null;"`
- HeadImgPath string `json:"head_img_path" gorm:"not null;"`
- VideoType int `json:"video_type" gorm:"not null; column:video_type;"`
- Resolution string `json:"resolution" gorm:"not null; column:resolution;"`
- CreatedAt XTime `json:"createdAt" gorm:"column:createdAt;"`
- UpdatedAt XTime `json:"updatedAt" gorm:"column:updatedAt;"`
- }
- type PropertyVideoTag struct {
- VideoId int `json:"video_id" gorm:"not null;"`
- TagId int `json:"tag_id" gorm:"not null;"`
- }
|