Files
iotlcm/server/internal/model/app_user.go
T
MiFaZhan 2ed5dfa6a1 chore: 初始开源发布
iotlcm-app:小程序端 + 用户端服务。

- app/:uni-app 小程序前端(基于 unibest,MIT)
  - 微信 AppID → YOUR_WX_APPID,uni-app AppID → __UNI__YOURAPPID
  - 内网后端地址 → admin.iotlcm.example.com
  - 应用标题与 unibest 模板 README 重写(保留上游致谢与 MIT 声明)
- server/:GoFrame 用户端服务(基于 XiuAdmin,Apache-2.0)
  - module xiuadmin → git.5iot.com/iotlcm-public/iotlcm-app(360 文件)
  - 支付回调地址 → app.iotlcm.example.com,商户名与应用名泛化
  - 真实手机号 → 合法 11 位编造号(保留号段前 3 位 + 后 4 位)
  - 依赖号码尾部的断言同步更新
  - 补 server/LICENSE(Apache-2.0)
- 移除内部资产:CI 触发器
- 补根 README,LF 行尾 + .gitattributes

已知:TestSysDept_RefreshDeptAncestors 在源仓同一提交上同样失败,属既有缺陷。
2026-10-26 14:01:25 +08:00

97 lines
5.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package model
type AppUserInfoModel struct {
UserId int64 `json:"-" dc:"用户ID"`
TenantId string `json:"-" dc:"租户ID"`
DeptId int64 `json:"-" dc:"部门ID"`
Username string `json:"username" dc:"登录账号"`
NickName string `json:"nickName" dc:"昵称"`
Phone string `json:"phone" dc:"手机号"`
Avatar string `json:"avatar" dc:"头像"`
Sex string `json:"sex" dc:"性别"`
UserType string `json:"userType" dc:"用户类型"`
IsTerminal bool `json:"isTerminal" dc:"是否终端用户"`
CanEnterpriseBusiness bool `json:"canEnterpriseBusiness" dc:"是否可使用企业业务"`
WechatBound bool `json:"wechatBound" dc:"是否已绑定微信用户"`
WechatBindText string `json:"wechatBindText" dc:"微信绑定状态文本"`
Balance float64 `json:"balance" dc:"账户余额"`
Role string `json:"role" dc:"角色名称(账号类型:企业用户/终端用户)"`
RoleName string `json:"roleName" dc:"主角色名称(账户绑定 sys_role.role_name)"`
RoleKey string `json:"roleKey" dc:"主角色标识(账户绑定 sys_role.role_key)"`
RoleNames []string `json:"roleNames" dc:"账户绑定角色名称列表"`
EnterpriseProfile *AppEnterpriseProfileModel `json:"enterpriseProfile,omitempty" dc:"企业客户档案"`
TerminalProfile *AppTerminalProfileModel `json:"terminalProfile,omitempty" dc:"终端客户档案"`
}
type AppEnterpriseProfileModel struct {
DeptId int64 `json:"-" dc:"部门ID"`
DeptName string `json:"deptName" dc:"企业名称"`
DeptKey string `json:"deptKey" dc:"客户编码"`
Phone string `json:"phone" dc:"联系电话"`
Email string `json:"email" dc:"邮箱"`
StatusText string `json:"statusText" dc:"企业状态"`
CreditCode string `json:"creditCode" dc:"统一社会信用代码"`
AreaCode string `json:"areaCode" dc:"行政区域代码"`
Address string `json:"address" dc:"地址"`
FullName string `json:"fullName" dc:"单位全称"`
Industry string `json:"industry" dc:"行业"`
LegalPersonName string `json:"legalPersonName" dc:"法人名称"`
LegalPersonIdCard string `json:"legalPersonIdCard" dc:"法人身份证号"`
CompanyType string `json:"companyType" dc:"单位类型"`
EstablishTime string `json:"establishTime" dc:"单位成立时间"`
BankName string `json:"bankName" dc:"开户行名称"`
BankAccount string `json:"bankAccount" dc:"开户行账号"`
RealNameStatus string `json:"realNameStatus" dc:"实名认证状态"`
}
type AppTerminalProfileModel struct {
TerminalId int64 `json:"-" dc:"终端客户ID"`
TerminalName string `json:"terminalName" dc:"客户名称"`
Phone string `json:"phone" dc:"联系电话"`
Email string `json:"email" dc:"邮箱"`
Status string `json:"-" dc:"客户状态"`
StatusText string `json:"statusText" dc:"客户状态文本"`
CreditCode string `json:"creditCode" dc:"统一社会信用代码"`
AreaCode string `json:"areaCode" dc:"行政区域代码"`
Address string `json:"address" dc:"地址"`
FullName string `json:"fullName" dc:"单位全称"`
Industry string `json:"industry" dc:"行业"`
LegalPersonName string `json:"legalPersonName" dc:"法人名称"`
LegalPersonIdCard string `json:"legalPersonIdCard" dc:"法人身份证号"`
CompanyType string `json:"companyType" dc:"单位类型"`
EstablishTime string `json:"establishTime" dc:"单位成立时间"`
BankName string `json:"bankName" dc:"开户行名称"`
BankAccount string `json:"bankAccount" dc:"开户行账号"`
Balance float64 `json:"-" dc:"账户余额"`
RealNameStatus string `json:"realNameStatus" dc:"实名认证状态"`
}
type AppUpdateUserInfoParam struct {
NickName string `json:"nickName" v:"required#昵称不能为空" dc:"昵称"`
Avatar string `json:"avatar" dc:"头像"`
Sex string `json:"sex" v:"in:0,1,2#性别参数不正确" dc:"性别"`
TerminalName string `json:"terminalName" dc:"客户名称"`
Phone string `json:"phone" dc:"联系电话"`
Email string `json:"email" dc:"邮箱"`
CreditCode string `json:"creditCode" dc:"统一社会信用代码"`
AreaCode string `json:"areaCode" dc:"行政区域代码"`
Address string `json:"address" dc:"地址"`
FullName string `json:"fullName" dc:"单位全称"`
Industry string `json:"industry" dc:"行业"`
LegalPersonName string `json:"legalPersonName" dc:"法人名称"`
LegalPersonIdCard string `json:"legalPersonIdCard" dc:"法人身份证号"`
CompanyType string `json:"companyType" dc:"单位类型"`
EstablishTime string `json:"establishTime" dc:"单位成立时间,格式YYYY-MM-DD"`
BankName string `json:"bankName" dc:"开户行名称"`
BankAccount string `json:"bankAccount" dc:"开户行账号"`
}
type AppWechatBindParam struct {
WxCode string `json:"wxCode" v:"required#微信登录凭证不能为空" dc:"微信小程序登录临时凭证"`
}
type AppWechatBindModel struct {
Success bool `json:"success" dc:"是否绑定成功"`
UserInfo *AppUserInfoModel `json:"userInfo" dc:"最新用户信息"`
}