sync: 对齐小程序 v1.0.2 生产代码并脱敏
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
)
|
||||
|
||||
type AllocateResultReq struct {
|
||||
g.Meta `path:"/card/allocate-result" method:"get" tags:"APP-卡片" summary:"查询本人划拨结果" x-check-permission:"cpm:iot:tSimCardAllocate:batch:submit"`
|
||||
BatchNo string `json:"batchNo" v:"length:0,64"`
|
||||
RequestId string `json:"requestId" v:"length:0,96"`
|
||||
}
|
||||
type AllocateResultRes struct{ *model.AppExecutionLogItem }
|
||||
type AllocateDetailsReq struct {
|
||||
g.Meta `path:"/card/allocate-details" method:"get" tags:"APP-卡片" summary:"查询本人划拨明细" x-check-permission:"cpm:iot:tSimCardAllocate:batch:submit"`
|
||||
model.AppExecutionLogDetailParam
|
||||
}
|
||||
type AllocateDetailsRes struct {
|
||||
Items []*model.AppExecutionLogDetail `json:"items"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
@@ -59,6 +59,15 @@ type PhoneLoginRes struct {
|
||||
model.AppAuthTokenModel
|
||||
}
|
||||
|
||||
type PhoneSmsLoginReq struct {
|
||||
g.Meta `path:"/auth/phone-login" method:"post" tags:"APP-授权" summary:"手机号短信验证码登录"`
|
||||
model.AppPhoneSmsLoginParam
|
||||
}
|
||||
|
||||
type PhoneSmsLoginRes struct {
|
||||
model.AppAuthTokenModel
|
||||
}
|
||||
|
||||
type WechatLoginReq struct {
|
||||
g.Meta `path:"/auth/wechat-login" method:"post" tags:"APP-授权" summary:"微信一键登录"`
|
||||
model.AppWechatLoginParam
|
||||
|
||||
@@ -12,8 +12,9 @@ type CustomerListReq struct {
|
||||
}
|
||||
|
||||
type CustomerListRes struct {
|
||||
Items []*model.AppCustomerModel `json:"items" dc:"客户列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
Summary *model.AppCustomerSummary `json:"summary" dc:"当前筛选结果汇总"`
|
||||
Items []*model.AppCustomerModel `json:"items" dc:"客户列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type CustomerDetailReq struct {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
)
|
||||
|
||||
type ExecutionLogListReq struct {
|
||||
g.Meta `path:"/execution-log/list" method:"get" tags:"APP-执行日志" summary:"查询权限范围内执行日志" x-check-permission:"cpm:common:batchExecutionLog:list"`
|
||||
model.AppExecutionLogListParam
|
||||
}
|
||||
type ExecutionLogListRes struct {
|
||||
Items []*model.AppExecutionLogItem `json:"items"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
type ExecutionLogSummaryReq struct {
|
||||
g.Meta `path:"/execution-log/summary" method:"get" tags:"APP-执行日志" summary:"查询权限范围内执行日志概要" x-check-permission:"cpm:common:batchExecutionLog:summary"`
|
||||
BatchNo string `json:"batchNo" v:"required|length:1,64"`
|
||||
}
|
||||
type ExecutionLogSummaryRes struct{ *model.AppExecutionLogItem }
|
||||
type ExecutionLogDetailsReq struct {
|
||||
g.Meta `path:"/execution-log/details" method:"get" tags:"APP-执行日志" summary:"查询权限范围内执行日志明细" x-check-permission:"cpm:common:batchExecutionLog:detailList"`
|
||||
model.AppExecutionLogDetailParam
|
||||
}
|
||||
type ExecutionLogDetailsRes struct {
|
||||
Items []*model.AppExecutionLogDetail `json:"items"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
)
|
||||
|
||||
type WarningPreferenceReq struct {
|
||||
g.Meta `path:"/user/wechat/warning-preference" method:"get" tags:"APP-用户" summary:"读取微信预警提醒偏好"`
|
||||
}
|
||||
type WarningPreferenceRes struct {
|
||||
model.AppWarningPreferenceModel
|
||||
}
|
||||
type SaveWarningPreferenceReq struct {
|
||||
g.Meta `path:"/user/wechat/warning-preference" method:"post" tags:"APP-用户" summary:"保存微信预警提醒偏好"`
|
||||
model.AppWarningPreferenceParam
|
||||
}
|
||||
type SaveWarningPreferenceRes struct {
|
||||
model.AppWarningPreferenceModel
|
||||
}
|
||||
type UnbindWechatReq struct {
|
||||
g.Meta `path:"/user/wechat/unbind" method:"post" tags:"APP-用户" summary:"解除当前账号微信绑定"`
|
||||
}
|
||||
type UnbindWechatRes struct{ model.AppWechatBindModel }
|
||||
@@ -42,3 +42,9 @@ type WorkOrderUploadReq struct {
|
||||
type WorkOrderUploadRes struct {
|
||||
*model.SysOssUploadModel
|
||||
}
|
||||
|
||||
type WorkOrderActionReq struct {
|
||||
g.Meta `path:"/work-order/action" method:"post" tags:"APP-工单" summary:"按权限跟进或办理工单" x-check-permission:"cpm:gen:tWoMain:view,cpm:gen:tWoMain:list"`
|
||||
model.AppWorkOrderActionParam
|
||||
}
|
||||
type WorkOrderActionRes struct{}
|
||||
|
||||
Reference in New Issue
Block a user