feat:完善项目
This commit is contained in:
@ -602,6 +602,51 @@ func (*Work) Schedule(c *gin.Context) {
|
||||
APIResponse(err, data)(c)
|
||||
}
|
||||
|
||||
/**
|
||||
* @api {post} /api/v1/work/schedule/basic 工单基本流程信息
|
||||
* @apiVersion 1.0.0
|
||||
* @apiName WorkScheduleBasic
|
||||
* @apiGroup Work
|
||||
*
|
||||
* @apiHeader {string} x-token token
|
||||
*
|
||||
* @apiParam {String} id Id
|
||||
*
|
||||
* @apiSuccess (200) {Object} data 数据信息
|
||||
* @apiSuccess (200) {String} data.id 流程ID
|
||||
* @apiSuccess (200) {Number} data.kind 流程类型(1;维修工单)
|
||||
* @apiSuccess (200) {String} data.title 流程名称
|
||||
* @apiSuccess (200) {String} data.title 流程详细名称
|
||||
* @apiSuccess (200) {Number} data.stage 阶段
|
||||
* @apiSuccess (200) {Number} data.step 步骤
|
||||
* @apiSuccess (200) {Number} code 成功响应状态码!
|
||||
* @apiSuccess (200) {String} msg 成功提示
|
||||
*
|
||||
* @apiSuccessExample {json} Success response:
|
||||
* HTTPS 200 OK
|
||||
* {
|
||||
* "code": 200
|
||||
* "msg": "ok"
|
||||
* "data": {
|
||||
* "id": "A9GVg5JZdr",
|
||||
* "title": "发起工单",
|
||||
* "kind": 1,
|
||||
* "stage": 1,
|
||||
* "step": 2
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
func (*Work) ScheduleBasic(c *gin.Context) {
|
||||
form := new(IDStringForm)
|
||||
|
||||
if err := bind(form)(c); err != nil {
|
||||
APIFailure(err.(error))(c)
|
||||
return
|
||||
}
|
||||
data, err := work.NewSchedule()(getSession()(c).(*service.Session)).Basic(form.Convert())
|
||||
APIResponse(err, data)(c)
|
||||
}
|
||||
|
||||
/**
|
||||
* @api {post} /api/v1/work/schedule/edit 工单流程信息修改
|
||||
* @apiVersion 1.0.0
|
||||
|
Reference in New Issue
Block a user