feat:完善项目
This commit is contained in:
@ -12,6 +12,9 @@ import (
|
||||
|
||||
type Work struct{}
|
||||
|
||||
type workLaunchForm struct {
|
||||
}
|
||||
|
||||
/**
|
||||
* @api {post} /api/v1/work/list 工单信息
|
||||
* @apiVersion 1.0.0
|
||||
@ -76,7 +79,18 @@ func (*Work) ToDo(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (*Work) Launch(c *gin.Context) {
|
||||
|
||||
form := &struct {
|
||||
IDStringForm
|
||||
Status int `json:"status" form:"status" binding:"required"`
|
||||
Remark string `json:"remark" form:"remark"`
|
||||
IsAssist int `json:"is_assist" form:"is_assist"`
|
||||
}{}
|
||||
if err := bind(form)(c); err != nil {
|
||||
APIFailure(err.(error))(c)
|
||||
return
|
||||
}
|
||||
err := work.NewInstance()(getSession()(c).(*service.Session)).Launch()
|
||||
APIResponse(err)
|
||||
}
|
||||
|
||||
func (*Work) Examine(c *gin.Context) {
|
||||
|
Reference in New Issue
Block a user