feat:完善项目
This commit is contained in:
@ -100,6 +100,21 @@ func (*Config) Breakdown(c *gin.Context) {
|
||||
APIResponse(err, data)(c)
|
||||
}
|
||||
|
||||
func (*Config) BreakdownAdd() {
|
||||
func (*Config) BreakdownAdd(c *gin.Context) {
|
||||
|
||||
}
|
||||
|
||||
func (*Config) BreakdownEdit(c *gin.Context) {
|
||||
|
||||
}
|
||||
|
||||
func (*Config) BreakdownDelete(c *gin.Context) {
|
||||
form := new(IDStringForm)
|
||||
|
||||
if err := bind(form)(c); err != nil {
|
||||
APIFailure(err.(error))(c)
|
||||
return
|
||||
}
|
||||
err := config.NewBreakdown()(getSession()(c).(*service.Session)).Delete(form.Convert())
|
||||
APIResponse(err)(c)
|
||||
}
|
||||
|
||||
@ -71,10 +71,25 @@ func (*Work) Instance(c *gin.Context) {
|
||||
APIResponse(err, data)(c)
|
||||
}
|
||||
|
||||
func (*Work) ToDo(c *gin.Context) {
|
||||
|
||||
}
|
||||
|
||||
func (*Work) Launch(c *gin.Context) {
|
||||
|
||||
}
|
||||
|
||||
func (*Work) Examine(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.NewPerson()(getSession()(c).(*service.Session)).Examine(form.Convert(), form.Status, form.Remark, form.IsAssist)
|
||||
APIResponse(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user