feat: analysis user status
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

This commit is contained in:
zzw
2026-10-27 09:01:36 +08:00
parent f2fd4acbfd
commit c4eede1114
42 changed files with 4401 additions and 48 deletions
+8
View File
@@ -0,0 +1,8 @@
package dao
type BannerItem struct {
Id int64 `gorm:"column:id" json:"id"`
Title string `gorm:"column:title" json:"title"`
ImageUrl string `gorm:"column:image_url" json:"image_url"`
LinkUrl string `gorm:"column:link_url" json:"link_url"`
}
+64
View File
@@ -0,0 +1,64 @@
package dao
import "lone-services/pkg/utils"
const (
FaceppMapTypeAcne = "acne"
FaceppMapTypeClosedComedones = "closed_comedones"
FaceppMapTypeBrownSpot = "brown_spot"
FaceppMapTypeMole = "mole"
)
type FaceppMapMeta struct {
Type string
NameCN string
NameEN string
}
var FaceppMapTypeMeta = []FaceppMapMeta{
{Type: FaceppMapTypeAcne, NameCN: "痤疮", NameEN: "acne"},
{Type: FaceppMapTypeClosedComedones, NameCN: "粉刺", NameEN: "comedones"},
{Type: FaceppMapTypeBrownSpot, NameCN: "色斑", NameEN: "spot"},
{Type: FaceppMapTypeMole, NameCN: "痣", NameEN: "mole"},
}
type FaceppAnalysis struct {
Id int64 `gorm:"column:id;primaryKey" json:"id"`
TaskId string `gorm:"column:task_id" json:"task_id"`
ResultOssPath string `gorm:"column:result_oss_path" json:"result_oss_path"`
}
type FaceppMap struct {
Id int64 `gorm:"column:id;primaryKey" json:"id"`
TaskId string `gorm:"column:task_id" json:"task_id"`
Type string `gorm:"column:type" json:"type"`
Path string `gorm:"column:path" json:"path"`
ImageWidth int `gorm:"column:image_width" json:"image_width"`
ImageHeight int `gorm:"column:image_height" json:"image_height"`
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
}
type FaceppMapBox struct {
Id int64 `gorm:"column:id;primaryKey" json:"id"`
MapId int64 `gorm:"column:map_id" json:"map_id"`
Content string `gorm:"column:content" json:"content"`
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
}
type FaceppMapBoxItem struct {
Id int64 `json:"id"`
Content interface{} `json:"content"`
}
type FaceppMapResource struct {
Id int64 `json:"id"`
Type string `json:"type"`
TypeName string `json:"type_name"`
TypeNameEn string `json:"type_name_en"`
Path string `json:"path"`
Boxes []FaceppMapBoxItem `json:"boxes"`
ImageWidth int `json:"image_width"`
ImageHeight int `json:"image_height"`
}
+39
View File
@@ -0,0 +1,39 @@
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"`
}
+41
View File
@@ -0,0 +1,41 @@
package dao
type ImageLogResource struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
Cover string `json:"cover"`
Contents map[string]string `json:"contents"`
TaskId string `json:"task_id"`
CreateTime string `json:"create_time"`
}
type ImageOverviewResource struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
Cover string `json:"cover"`
Contents interface{} `json:"contents"`
CreateTime string `json:"create_time"`
}
type GalleryImageItem struct {
Date string `json:"date"`
URL string `json:"url"`
}
type TagItem struct {
Id int64 `json:"id"`
Tag string `json:"tag"`
}
type ViewUserInfo struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
Username string `json:"username"`
Nickname string `json:"nickname"`
Avatar string `json:"avatar"`
Mobile string `json:"mobile"`
Gender int `json:"gender"`
Birthday string `json:"birthday"`
Age string `json:"age"`
Tag []TagItem `json:"tag"`
}