43 lines
1.0 KiB
Go
43 lines
1.0 KiB
Go
package entitys
|
|
|
|
type PublishTaskDetail struct {
|
|
// publish 表字段
|
|
ID int `db:"ID"`
|
|
RequestID string `db:"request_id"`
|
|
PlatIndex string `db:"plat_index"`
|
|
Title string `db:"title"`
|
|
Tag string `db:"tag"`
|
|
UserIndex string `db:"user_index"`
|
|
URL string `db:"url"`
|
|
Img string `db:"img"`
|
|
PublishTime string `db:"publish_time"`
|
|
Status int `db:"status"`
|
|
Msg string `db:"msg"`
|
|
TokenID int `db:"token_id"`
|
|
|
|
// plat 表字段
|
|
PlatName string `db:"plat_name"`
|
|
PlatType int `db:"plat_type"`
|
|
PlatStatus int `db:"plat_status"`
|
|
PlatContentFormat string `db:"content_format"`
|
|
LoginUrl string `db:"login_url"`
|
|
EditUrl string `db:"edit_url"`
|
|
LoginedUrl string `db:"logined_url"`
|
|
Desc string `db:"desc"`
|
|
}
|
|
|
|
type NotifyData struct {
|
|
NotifyUrl string
|
|
TokenId int
|
|
Type NotifyType
|
|
Status int
|
|
Msg string
|
|
}
|
|
|
|
type NotifyType int8
|
|
|
|
const (
|
|
NotifyTypePublish NotifyType = 1
|
|
NotifyTypeToken NotifyType = 1
|
|
)
|