geoGo/internal/entitys/publish.go

87 lines
2.4 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
)
type BotChat struct {
Question string `json:"question"`
ArticleType string `json:"article_type"`
BrandInfo *BrandInfo `json:"brand_info"`
}
type BrandInfo struct {
Name string `json:"name"`
Industry string `json:"industry"`
Type string `json:"type"`
ProductOrService string `json:"product_or_service"`
Advantages string `json:"advantages"`
Story string `json:"story"`
Problem string `json:"problem"`
Background string `json:"background"`
Case string `json:"case"`
Other string `json:"other"`
ServiceCope string `json:"service_cope"`
TargetAudience string `json:"target_audience"`
}
type PlatList struct {
Desc string `json:"question"`
PlatItem []*PlatItem `json:"plat_item"`
}
type PlatItem struct {
Platform string `json:"platform"`
PlatformIndex string `json:"platform_index"`
}
type BotChatResponse struct {
Title string `json:"title"`
Content string `json:"content"`
WordCount int `json:"wordCount"`
Tag []string `json:"tag"`
RecommendPlatform []struct {
Platform string `json:"platform"`
PlatformIndex string `json:"platform_index"`
Score string `json:"score"`
Reason string `json:"reason"`
} `json:"recommend_platform"`
}