- service/dto/controller 各拆 18 文件,一表一文件;跨表编排留在 outfit_generation_task_service - controller 共享 struct(outfit/member)保 /outfit/*、/member/* 前缀,路由零漂移(28 路径 diff 为空) - 修复 4 个缺失 g.Meta handler:/user/profile、/avatar/get、/body-measurement/get、/hairstyle/list 从 ALL 收敛为 GET - 工具包并入 agent/ 单包(weather/imagegen/avatar/scoring),NewCache 泛化 NewTTLCache - 虎皮椒支付适配器内联 service/payment_order_service.go,member 服务拆 4 表文件 - 冒烟 21 路径全绿 + 客户端 dart analyze 零 error
28 lines
666 B
Go
28 lines
666 B
Go
package dto
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type AvatarBuildReq struct {
|
|
g.Meta `path:"/build" method:"post" tags:"化身" summary:"构建化身"`
|
|
}
|
|
|
|
type AvatarBuildRes struct {
|
|
AvatarId int64 `json:"avatar_id"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type AvatarGetReq struct {
|
|
g.Meta `path:"/get" method:"get" tags:"化身" summary:"我的化身"`
|
|
}
|
|
|
|
type AvatarGetRes struct {
|
|
FaceTemplateId int `json:"face_template_id"`
|
|
BodyTemplateId int `json:"body_template_id"`
|
|
SkinToneIndex int `json:"skin_tone_index"`
|
|
GlbUrl string `json:"glb_url"`
|
|
BuildStatus string `json:"build_status"`
|
|
Error string `json:"error"`
|
|
}
|