| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package repair
- import (
- "lims_adapter/model"
- "lims_adapter/model/repair/internal"
- "github.com/gogf/gf/os/gtime"
- )
- // Repair is the golang structure for table repair.
- type Repair internal.Repair
- // Fill with you ideas below.
- type RepairListReq struct {
- Page *model.Page `json:"page"`
- Status int `json:"status"` // 报修状态 1 未处理 2 已处理
- CreatedByName string `json:"createdByName"` // 创建者用户名
- CreatedAtStart *gtime.Time `json:"createdAtStart"` // 创建时间
- CreatedAtEnd *gtime.Time `json:"createdAtEnd"` // 创建时间
- }
- type RepairGetReq struct {
- Id int `json:"id"` // 报修Id
- }
- type RepairGetRsp struct {
- Repair
- Flow []*RepairFlow `json:"flow"`
- Result []*RepairResult `json:"result"`
- }
- type RepairAddReq struct {
- Type string `json:"type" v:"required#请输入报修类型"` // 报修类型
- Content string `json:"content" v:"required#请输入报修内容"` // 报修内容
- Mobile string `json:"mobile" v:"required|phone#请输入联系方式|请输入正确的手机号"` // 联系方式
- Email string `json:"email" v:"required|email#请输入电子邮箱|请输入正确的电子邮箱"` // 邮箱
- }
- type RepairTransReq struct {
- Id int `json:"id" v:"required#请输入报修 Id"` // 报修Id
- UserId int `json:"userId" v:"required#请输入转交人"` // 转交人 Id
- Note string `json:"note" v:"required#请输入转交原因"` // 转交原因
- }
- type RepairProcessReq struct {
- Id int `json:"id" v:"required#请输入报修 Id"` // 报修Id
- Type int `json:"type" v:"required#请输入处理方式"` // 处理方式
- Note string `json:"note" v:"required#请输入处理描述"` // 处理描述
- }
- type RepairReactivateReq struct {
- Id int `json:"id" v:"required#请输入报修 Id"` // 报修Id
- Note string `json:"note" v:"required#请输入重新激活描述"` // 重新激活描述
- }
- type RepairProcessorRsp struct {
- Id int `json:"id"`
- Realname string `json:"name"`
- }
|