15a5616308
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / aiserver (push) Successful in 0s
CI / analysis (push) Successful in 37s
CI / bff (push) Successful in 18s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 22s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 21s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
47 lines
1.4 KiB
Go
47 lines
1.4 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
type UserGraph struct {
|
|
Id int64 `gorm:"column:id;primaryKey" json:"id"`
|
|
Type int `gorm:"column:type" json:"type"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
Title string `gorm:"column:title" json:"title"`
|
|
Images string `gorm:"column:images" json:"images"`
|
|
Status int8 `gorm:"column:status" json:"status"`
|
|
CreateAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
|
UpdateAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
type UserGraphType struct {
|
|
Id int64 `gorm:"column:id;primaryKey" json:"id"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
Sort int `gorm:"column:sort" json:"sort"`
|
|
Status int8 `gorm:"column:status" json:"status"`
|
|
}
|
|
|
|
type UserGraphTypeResource struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type GraphTitleItem struct {
|
|
Name string `json:"name"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
type GraphImageItem struct {
|
|
Url string `json:"url"`
|
|
Text string `json:"text"`
|
|
}
|
|
|
|
type GraphResource struct {
|
|
Id int64 `json:"id"`
|
|
Type int `json:"type"`
|
|
Name string `json:"name"`
|
|
Title []GraphTitleItem `json:"title"`
|
|
Images []GraphImageItem `json:"images"`
|
|
TypeName string `json:"type_name"`
|
|
CreateAt utils.CustomTime `json:"created_at"`
|
|
}
|