Add 'server/' from commit 'e64421295fff83acbb6d6ab3d3b27f3ef8368f00'

git-subtree-dir: server
git-subtree-mainline: c4e617ada7
git-subtree-split: e64421295f
This commit is contained in:
2026-08-04 15:02:35 +08:00
176 changed files with 13532 additions and 0 deletions
@@ -0,0 +1,13 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type AdRewardLog struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
AdType string `orm:"ad_type" json:"ad_type"`
RewardKey string `orm:"reward_key" json:"reward_key"`
Slot int `orm:"slot" json:"slot"`
Status string `orm:"status" json:"status"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,19 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type AvatarModel struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
FaceTemplateId int `orm:"face_template_id" json:"face_template_id"`
BodyTemplateId int `orm:"body_template_id" json:"body_template_id"`
SkinToneIndex int `orm:"skin_tone_index" json:"skin_tone_index"`
FaceTextureUrl string `orm:"face_texture_url" json:"face_texture_url"`
GlbUrl string `orm:"glb_url" json:"glb_url"`
FramesUrl string `orm:"frames_url" json:"frames_url"`
BuildStatus string `orm:"build_status" json:"build_status"`
Error string `orm:"error" json:"error"`
ParamsSnapshot string `orm:"params_snapshot" json:"params_snapshot"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updated_at"`
}
@@ -0,0 +1,17 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type BodyMeasurement struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
Height int `orm:"height" json:"height"`
Weight int `orm:"weight" json:"weight"`
SkinTone int `orm:"skin_tone" json:"skin_tone"`
Bust int `orm:"bust" json:"bust"`
Waist int `orm:"waist" json:"waist"`
Hip int `orm:"hip" json:"hip"`
Shoulder int `orm:"shoulder" json:"shoulder"`
FitParams string `orm:"fit_params" json:"fit_params"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updated_at"`
}
@@ -0,0 +1,14 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type CpsCategory struct {
Id int64 `orm:"id" json:"id"`
Code string `orm:"code" json:"code"`
Name string `orm:"name" json:"name"`
ParentCode string `orm:"parent_code" json:"parent_code"`
Source string `orm:"source" json:"source"`
SourceCatId string `orm:"source_cat_id" json:"source_cat_id"`
Sort int `orm:"sort" json:"sort"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,16 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type CpsClickLog struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
Source string `orm:"source" json:"source"`
OuterId string `orm:"outer_id" json:"outer_id"`
Scene string `orm:"scene" json:"scene"`
PlanId int64 `orm:"plan_id" json:"plan_id"`
CategoryCode string `orm:"category_code" json:"category_code"`
Deeplink string `orm:"deeplink" json:"deeplink"`
Ip string `orm:"ip" json:"ip"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,21 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type CpsProduct struct {
Id int64 `orm:"id" json:"id"`
Source string `orm:"source" json:"source"`
OuterId string `orm:"outer_id" json:"outer_id"`
CategoryCode string `orm:"category_code" json:"category_code"`
Name string `orm:"name" json:"name"`
CoverUrl string `orm:"cover_url" json:"cover_url"`
PriceFen int64 `orm:"price_fen" json:"price_fen"`
ShopName string `orm:"shop_name" json:"shop_name"`
CommissionRate int `orm:"commission_rate" json:"commission_rate"`
City string `orm:"city" json:"city"`
SceneTags string `orm:"scene_tags" json:"scene_tags"`
Raw string `orm:"raw" json:"raw"`
Status int `orm:"status" json:"status"`
SyncAt *gtime.Time `orm:"sync_at" json:"sync_at"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,14 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type HairstyleAsset struct {
Id int64 `orm:"id" json:"id"`
Name string `orm:"name" json:"name"`
StyleTag string `orm:"style_tag" json:"style_tag"`
GlbUrl string `orm:"glb_url" json:"glb_url"`
ThumbUrl string `orm:"thumb_url" json:"thumb_url"`
ApplicableFace string `orm:"applicable_face" json:"applicable_face"`
Sort int `orm:"sort" json:"sort"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,14 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type MemberPlan struct {
Id int64 `orm:"id" json:"id"`
Name string `orm:"name" json:"name"`
PriceFen int `orm:"price_fen" json:"price_fen"`
DurationDays int `orm:"duration_days" json:"duration_days"`
Features string `orm:"features" json:"features"` // 权益 JSON 数组字符串
Sort int `orm:"sort" json:"sort"`
Status int `orm:"status" json:"status"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,17 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type OutfitGenerationTask struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
StartDate string `orm:"start_date" json:"start_date"`
EndDate string `orm:"end_date" json:"end_date"`
Location string `orm:"location" json:"location"`
WeatherSnapshot string `orm:"weather_snapshot" json:"weather_snapshot"`
Status string `orm:"status" json:"status"`
Error string `orm:"error" json:"error"`
ModelName string `orm:"model_name" json:"model_name"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updated_at"`
}
@@ -0,0 +1,20 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type OutfitPlan struct {
Id int64 `orm:"id" json:"id"`
TaskId int64 `orm:"task_id" json:"task_id"`
UserId int64 `orm:"user_id" json:"user_id"`
DateRange string `orm:"date_range" json:"date_range"`
Location string `orm:"location" json:"location"`
Title string `orm:"title" json:"title"`
Source string `orm:"source" json:"source"`
Score int `orm:"score" json:"score"`
MainFlag int `orm:"main_flag" json:"main_flag"`
HairstyleId int64 `orm:"hairstyle_id" json:"hairstyle_id"`
HairColor string `orm:"hair_color" json:"hair_color"`
WeatherRef string `orm:"weather_ref" json:"weather_ref"`
Occasion string `orm:"occasion" json:"occasion"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,15 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type PartnerStore struct {
Id int64 `orm:"id" json:"id"`
Name string `orm:"name" json:"name"`
Type int `orm:"type" json:"type"`
Lat float64 `orm:"lat" json:"lat"`
Lng float64 `orm:"lng" json:"lng"`
Address string `orm:"address" json:"address"`
CommissionPolicy string `orm:"commission_policy" json:"commission_policy"`
Status int `orm:"status" json:"status"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,13 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type PayNotifyLog struct {
Id int64 `orm:"id" json:"id"`
OrderNo string `orm:"order_no" json:"order_no"`
Body string `orm:"body" json:"body"`
Sign string `orm:"sign" json:"sign"`
RemoteIp string `orm:"remote_ip" json:"remote_ip"`
Status string `orm:"status" json:"status"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,17 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type PaymentOrder struct {
Id int64 `orm:"id" json:"id"`
OrderNo string `orm:"order_no" json:"order_no"`
UserId int64 `orm:"user_id" json:"user_id"`
PlanId int64 `orm:"plan_id" json:"plan_id"`
AmountFen int `orm:"amount_fen" json:"amount_fen"`
Channel string `orm:"channel" json:"channel"`
Status string `orm:"status" json:"status"`
TradeNo string `orm:"trade_no" json:"trade_no"`
NotifyRaw string `orm:"notify_raw" json:"-"`
PaidAt *gtime.Time `orm:"paid_at" json:"paid_at"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,14 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type PlanEffectImage struct {
Id int64 `orm:"id" json:"id"`
PlanId int64 `orm:"plan_id" json:"plan_id"`
Angle string `orm:"angle" json:"angle"`
Url string `orm:"url" json:"url"`
Status string `orm:"status" json:"status"`
PromptSnapshot string `orm:"prompt_snapshot" json:"prompt_snapshot"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updated_at"`
}
@@ -0,0 +1,15 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type PlanOutfitItem struct {
Id int64 `orm:"id" json:"id"`
PlanId int64 `orm:"plan_id" json:"plan_id"`
Slot string `orm:"slot" json:"slot"`
Source string `orm:"source" json:"source"`
WardrobeItemId int64 `orm:"wardrobe_item_id" json:"wardrobe_item_id"`
ProductName string `orm:"product_name" json:"product_name"`
Name string `orm:"name" json:"name"`
Desc string `orm:"desc" json:"desc"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,12 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type PlanReview struct {
Id int64 `orm:"id" json:"id"`
PlanId int64 `orm:"plan_id" json:"plan_id"`
UserId int64 `orm:"user_id" json:"user_id"`
Action string `orm:"action" json:"action"`
Note string `orm:"note" json:"note"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,13 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type SceneCategoryMap struct {
Id int64 `orm:"id" json:"id"`
SceneType string `orm:"scene_type" json:"scene_type"`
Occasion string `orm:"occasion" json:"occasion"`
Source string `orm:"source" json:"source"`
CategoryCode string `orm:"category_code" json:"category_code"`
Priority int `orm:"priority" json:"priority"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,13 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type ScoringRule struct {
Id int64 `orm:"id" json:"id"`
Dimension string `orm:"dimension" json:"dimension"`
RuleType string `orm:"rule_type" json:"rule_type"`
RulesJson string `orm:"rules_json" json:"rules_json"`
Enabled int `orm:"enabled" json:"enabled"`
Version int `orm:"version" json:"version"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
+14
View File
@@ -0,0 +1,14 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type User struct {
Id int64 `orm:"id" json:"id"`
Role string `orm:"role" json:"role"`
Username string `orm:"username" json:"username"`
Phone string `orm:"phone" json:"phone"`
Password string `orm:"password" json:"-"`
Name string `orm:"name" json:"name"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updated_at"`
}
@@ -0,0 +1,13 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type UserMember struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
PlanId int64 `orm:"plan_id" json:"plan_id"`
ExpireAt *gtime.Time `orm:"expire_at" json:"expire_at"`
Source string `orm:"source" json:"source"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updated_at"`
}
@@ -0,0 +1,12 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type UserPhoto struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
Type int `orm:"type" json:"type"`
Url string `orm:"url" json:"url"`
Status int `orm:"status" json:"status"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}
@@ -0,0 +1,16 @@
package entity
import "github.com/gogf/gf/v2/os/gtime"
type WardrobeItem struct {
Id int64 `orm:"id" json:"id"`
UserId int64 `orm:"user_id" json:"user_id"`
PhotoUrl string `orm:"photo_url" json:"photo_url"`
Name string `orm:"name" json:"name"`
Category string `orm:"category" json:"category"`
Season string `orm:"season" json:"season"`
StyleTags string `orm:"style_tags" json:"style_tags"`
ColorInfo string `orm:"color_info" json:"color_info"`
Status int `orm:"status" json:"status"`
CreatedAt *gtime.Time `orm:"created_at" json:"created_at"`
}