geoGo/internal/data/model/publish.gen.go

35 lines
2.0 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
)
const TableNamePublish = "publish"
// Publish mapped from table <publish>
type Publish struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
TokenID int32 `gorm:"column:token_id;not null" json:"token_id"`
UserIndex string `gorm:"column:user_index;not null;comment:关联user.user_index" json:"user_index"` // 关联user.user_index
RequestID string `gorm:"column:request_id;not null;comment:日志id" json:"request_id"` // 日志id
Title string `gorm:"column:title;not null" json:"title"`
Tag string `gorm:"column:tag;not null;comment:标签,多个英文都好隔开’," json:"tag"` // 标签,多个英文都好隔开’,
Type int32 `gorm:"column:type;not null;default:1;comment:1:文章2视频" json:"type"` // 1:文章2视频
PlatIndex string `gorm:"column:plat_index;not null;comment:关联plat.index" json:"plat_index"` // 关联plat.index
URL string `gorm:"column:url;not null;comment:资源文件下载地址" json:"url"` // 资源文件下载地址
PublishTime time.Time `gorm:"column:publish_time;not null;comment:发布时间" json:"publish_time"` // 发布时间
Img string `gorm:"column:img;not null" json:"img"`
Status int32 `gorm:"column:status;not null;default:1;comment:1待发布2发布中3发布失败4发布成功" json:"status"` // 1待发布2发布中3发布失败4发布成功
CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
Msg string `gorm:"column:msg" json:"msg"`
}
// TableName Publish's table name
func (*Publish) TableName() string {
return TableNamePublish
}