57 lines
3.2 KiB
Go
57 lines
3.2 KiB
Go
package model
|
|
|
|
import "git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
|
|
|
type AppCustomerListParam struct {
|
|
request.PageInfo
|
|
CustomerType string `json:"customerType" dc:"客户类型:all/enterprise/terminal"`
|
|
Status string `json:"status" dc:"客户状态"`
|
|
}
|
|
|
|
type AppCustomerSummary struct {
|
|
Total int `json:"total" dc:"筛选结果客户总数"`
|
|
NormalCount int `json:"normalCount" dc:"筛选结果正常客户数"`
|
|
PendingProfileCount int `json:"pendingProfileCount" dc:"筛选结果实名资料待完善客户数"`
|
|
}
|
|
|
|
type AppCustomerDetailParam struct {
|
|
CustomerType string `json:"customerType" v:"required#客户类型不能为空" dc:"客户类型:enterprise/terminal"`
|
|
CustomerId int64 `json:"customerId" v:"required|min:1#客户ID不能为空|客户ID不能为空" dc:"客户ID"`
|
|
}
|
|
|
|
type AppCustomerStatusCount struct {
|
|
Status int `json:"status" dc:"状态编码"`
|
|
Count int `json:"count" dc:"卡数量"`
|
|
}
|
|
|
|
type AppCustomerModel struct {
|
|
PackageStatusCounts []AppCustomerStatusCount `json:"packageStatusCounts,omitempty" dc:"各套餐状态的直接持卡数量"`
|
|
CustomerType string `json:"customerType" dc:"客户类型"`
|
|
CustomerTypeName string `json:"customerTypeName" dc:"客户类型名称"`
|
|
CustomerId int64 `json:"customerId" dc:"客户ID"`
|
|
DeptId int64 `json:"-" dc:"企业部门ID"`
|
|
TerminalId int64 `json:"-" dc:"终端客户ID"`
|
|
ParentDeptId int64 `json:"-" dc:"上级部门ID"`
|
|
CustomerCode string `json:"customerCode,omitempty" dc:"客户编码"`
|
|
CustomerName string `json:"customerName" dc:"客户名称"`
|
|
DeptCategory string `json:"deptCategory,omitempty" dc:"部门类别"`
|
|
Phone string `json:"phone,omitempty" dc:"联系电话"`
|
|
Email string `json:"email,omitempty" dc:"邮箱"`
|
|
Status string `json:"status,omitempty" dc:"状态"`
|
|
StatusText string `json:"statusText" dc:"状态文本"`
|
|
RealNameStatus string `json:"realNameStatus" dc:"实名状态"`
|
|
Balance float64 `json:"-" dc:"账户余额"`
|
|
CardCount int `json:"cardCount" dc:"卡数量"`
|
|
CardStatusCounts []AppCustomerStatusCount `json:"cardStatusCounts,omitempty" dc:"各运营商状态的直接持卡数量"`
|
|
NormalCardCount int `json:"normalCardCount" dc:"正常卡数量"`
|
|
Address string `json:"address,omitempty" dc:"地址"`
|
|
FullName string `json:"fullName,omitempty" dc:"单位全称"`
|
|
CreatedAt string `json:"createdAt,omitempty" dc:"创建时间"`
|
|
}
|
|
|
|
type AppCustomerDetailModel struct {
|
|
AppCustomerModel
|
|
EnterpriseProfile *AppEnterpriseProfileModel `json:"enterpriseProfile,omitempty" dc:"企业实名资料"`
|
|
TerminalProfile *AppTerminalProfileModel `json:"terminalProfile,omitempty" dc:"终端实名资料"`
|
|
}
|