Files
lone-services/services/user/internal/dao/session.go
T
zzw 747ab25325
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 26s
CI / admin (push) Successful in 17s
CI / analysis (push) Successful in 24s
CI / bff (push) Successful in 16s
CI / chore (push) Successful in 14s
CI / equipment (push) Successful in 15s
CI / express (push) Successful in 13s
CI / factory (push) Successful in 13s
CI / message (push) Successful in 10s
CI / order (push) Successful in 10s
CI / payment (push) Successful in 11s
CI / percutaneous (push) Successful in 11s
CI / product (push) Successful in 12s
CI / record (push) Successful in 12s
CI / sale (push) Successful in 11s
CI / store (push) Successful in 11s
CI / support (push) Successful in 11s
CI / task (push) Successful in 10s
CI / user (push) Successful in 18s
CI / water (push) Successful in 13s
CI / wecom (push) Successful in 13s
CI / ws (push) Successful in 6s
feat: add facepp
2026-10-27 17:17:43 +08:00

81 lines
2.7 KiB
Go

package dao
type Token struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
Info UserLoginSession `json:"info"`
}
type OpenidResult struct {
Openid string `json:"openid"`
Unionid string `json:"unionid"`
}
type UserLoginSession struct {
Id int64 `json:"id"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Mobile string `json:"mobile"`
Gender uint8 `json:"gender"`
Birthday string `json:"birthday"`
Type uint8 `json:"type"` // 1:销售 2:门店 3:普通用户
ClientCode string `json:"client_code"`
BizId int64 `json:"biz_id,omitempty"`
}
type ProfileData struct {
Type uint8 `json:"type"`
Base ProfileBase `json:"base"`
Client *ProfileClient `json:"client,omitempty"`
Detail *ProfileDetail `json:"detail,omitempty"`
Sale *ProfileSaleData `json:"sale,omitempty"`
Store any `json:"store,omitempty"`
}
type ProfileBase struct {
Id int64 `json:"id"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Mobile string `json:"mobile"`
Gender uint8 `json:"gender"`
Birthday string `json:"birthday"`
Status uint8 `json:"status"`
}
type ProfileClient struct {
ClientCode string `json:"client_code"`
OpenedAt string `json:"opened_at"`
}
type ProfileSaleData struct {
Id int64 `json:"id"`
SaleId int64 `json:"sale_id"`
Name string `json:"name"`
Mobile string `json:"mobile"`
OriginMobile string `json:"origin_mobile"`
Avatar string `json:"avatar"`
Account string `json:"account"`
Type uint32 `json:"type"`
Sex uint32 `json:"sex"`
BirthDate string `json:"birth_date"`
Status uint32 `json:"status"`
GroupId int64 `json:"group_id"`
GroupName string `json:"group_name"`
Address string `json:"address"`
ProvinceId int64 `json:"province_id"`
CityId int64 `json:"city_id"`
DistrictId int64 `json:"district_id"`
TerritoryId int64 `json:"territory_id"`
TerritoryName string `json:"territory_name"`
Region *ProfileSaleRegion `json:"region,omitempty"`
IdCardFront string `json:"id_card_front"`
IdCardBack string `json:"id_card_back"`
BusinessLicense string `json:"business_license"`
}
type ProfileSaleRegion struct {
Province string `json:"province"`
City string `json:"city"`
District string `json:"district"`
}