Files
iotlcm/server/api/app/v1/customer.go
T

28 lines
969 B
Go

package v1
import (
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
"github.com/gogf/gf/v2/frame/g"
)
type CustomerListReq struct {
g.Meta `path:"/customer/list" method:"get" tags:"APP-客户" summary:"企业用户查询下级客户列表" x-check-permission:"cpm:agent:dept:list,cpm:agent:tAgentEnterprise:list"`
model.AppCustomerListParam
}
type CustomerListRes struct {
Summary *model.AppCustomerSummary `json:"summary" dc:"当前筛选结果汇总"`
Items []*model.AppCustomerModel `json:"items" dc:"客户列表"`
Total int `json:"total" dc:"总数"`
}
type CustomerDetailReq struct {
g.Meta `path:"/customer/detail" method:"get" tags:"APP-客户" summary:"企业用户查询客户详情" x-check-permission:"cpm:agent:tAgentEnterprise:view,cpm:agent:tAgentEnterprise:list"`
model.AppCustomerDetailParam
}
type CustomerDetailRes struct {
Customer *model.AppCustomerDetailModel `json:"customer" dc:"客户详情"`
}