2ed5dfa6a1
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 在源仓同一提交上同样失败,属既有缺陷。
59 lines
3.1 KiB
Go
59 lines
3.1 KiB
Go
package model
|
|
|
|
import (
|
|
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
|
|
|
"github.com/gogf/gf/v2/encoding/gjson"
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|
)
|
|
|
|
type AppWorkOrderListParam struct {
|
|
request.PageInfo
|
|
Keyword string `json:"keyword" dc:"工单编号、标题或内容"`
|
|
CurrentStatus int `json:"currentStatus" dc:"工单状态:0全部,1已分派,2处理中,3已解决,4已完结,5已取消"`
|
|
WoType int `json:"woType" dc:"工单类型:0卡,1模组,2设备,3订单,4余额,5提现"`
|
|
}
|
|
|
|
type AppWorkOrderDetailParam struct {
|
|
WoNo string `json:"woNo" v:"required#工单编号不能为空" dc:"工单编号"`
|
|
}
|
|
|
|
type AppWorkOrderCreateParam struct {
|
|
WoType int `json:"woType" dc:"工单类型:0卡,1模组,2设备,3订单,4余额,5提现"`
|
|
RelatedId int64 `json:"relatedId" dc:"关联业务ID"`
|
|
Title string `json:"title" v:"required#请输入工单标题" dc:"工单标题"`
|
|
Content string `json:"content" v:"required#请输入问题描述" dc:"问题描述"`
|
|
AttachmentUrls []string `json:"attachmentUrls" dc:"附件URL列表"`
|
|
}
|
|
|
|
type AppWorkOrderModel struct {
|
|
Id int64 `json:"id" dc:"主键ID"`
|
|
WoNo string `json:"woNo" dc:"工单编号"`
|
|
WoType int `json:"woType" dc:"工单类型"`
|
|
WoTypeText string `json:"woTypeText" dc:"工单类型文本"`
|
|
RelatedId int64 `json:"relatedId" dc:"关联业务ID"`
|
|
Title string `json:"title" dc:"工单标题"`
|
|
Content string `json:"content" dc:"问题描述"`
|
|
AttachmentUrls []string `json:"attachmentUrls,omitempty" dc:"附件URL列表"`
|
|
CreatorType int `json:"creatorType" dc:"创建人类型"`
|
|
CreatorName string `json:"creatorName" dc:"创建人"`
|
|
CreatorPhone string `json:"creatorPhone" dc:"创建人手机号"`
|
|
CurrentStatus int `json:"currentStatus" dc:"当前状态"`
|
|
CurrentStatusText string `json:"currentStatusText" dc:"当前状态文本"`
|
|
StatusType string `json:"statusType" dc:"状态样式"`
|
|
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
|
|
Communications []*AppWorkOrderCommModel `json:"communications,omitempty" dc:"沟通记录"`
|
|
}
|
|
|
|
type AppWorkOrderCommModel struct {
|
|
Id int64 `json:"id" dc:"主键ID"`
|
|
WoNo string `json:"woNo" dc:"工单编号"`
|
|
CommType int `json:"commType" dc:"沟通类型"`
|
|
CommTypeText string `json:"commTypeText" dc:"沟通类型文本"`
|
|
SenderName string `json:"senderName" dc:"发送人"`
|
|
Content string `json:"content" dc:"内容"`
|
|
AttachmentUrls *gjson.Json `json:"attachmentUrls,omitempty" dc:"附件URL列表"`
|
|
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
}
|