feat: analysis user auth and ws
This commit is contained in:
@@ -18,18 +18,16 @@ type UserLoginSession struct {
|
||||
Mobile string `json:"mobile"`
|
||||
Gender uint8 `json:"gender"`
|
||||
Birthday string `json:"birthday"`
|
||||
Type uint8 `json:"type"` // 1销售 2门店 3普通用户
|
||||
Type uint8 `json:"type"` // 1:销售 2:门店 3:普通用户
|
||||
ClientCode string `json:"client_code"`
|
||||
SaleId int64 `json:"sale_id,omitempty"`
|
||||
StoreId int64 `json:"store_id,omitempty"`
|
||||
BizId int64 `json:"biz_id,omitempty"`
|
||||
}
|
||||
|
||||
// ProfileData 当前登录用户详情(按 type 填充扩展字段)
|
||||
type ProfileData struct {
|
||||
Type uint8 `json:"type"`
|
||||
Base ProfileBase `json:"base"`
|
||||
Sale *ProfileSaleData `json:"sale,omitempty"`
|
||||
Store any `json:"store,omitempty"` // 门店详情暂未开放
|
||||
Store any `json:"store,omitempty"`
|
||||
}
|
||||
|
||||
type ProfileBase struct {
|
||||
@@ -43,29 +41,29 @@ type ProfileBase struct {
|
||||
}
|
||||
|
||||
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"`
|
||||
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"`
|
||||
IdCardFront string `json:"id_card_front"`
|
||||
IdCardBack string `json:"id_card_back"`
|
||||
BusinessLicense string `json:"business_license"`
|
||||
}
|
||||
|
||||
type ProfileSaleRegion struct {
|
||||
|
||||
Reference in New Issue
Block a user