26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
type Image struct {
|
|
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
|
TaskId string `gorm:"column:task_id" json:"task_id"`
|
|
Tag string `gorm:"column:tag" json:"tag"`
|
|
Images string `gorm:"column:images" json:"images"`
|
|
Contents string `gorm:"column:contents" json:"contents"`
|
|
Cover string `gorm:"column:cover" json:"cover"`
|
|
Status int8 `gorm:"column:status" json:"status"`
|
|
CreateTime utils.CustomTime `gorm:"column:create_time" json:"create_time"`
|
|
}
|
|
|
|
type ImageDetailResource struct {
|
|
Id int64 `json:"id"`
|
|
UserId int64 `json:"user_id"`
|
|
TaskId string `json:"task_id"`
|
|
Images map[string]interface{} `json:"images"`
|
|
Contents interface{} `json:"contents"`
|
|
Cover string `json:"cover"`
|
|
CreateTime string `json:"create_time"`
|
|
}
|