c4eede1114
CI / changes (push) Successful in 1m32s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / analysis (push) Successful in 3m45s
CI / bff (push) Successful in 31s
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 1s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / record (push) Successful in 0s
CI / store (push) Successful in 0s
CI / support (push) Successful in 0s
CI / user (push) Successful in 1s
CI / task (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
40 lines
1.2 KiB
Go
40 lines
1.2 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"`
|
|
}
|
|
|
|
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"`
|
|
}
|