...
|
...
|
@@ -164,6 +164,35 @@ func (this *TemplateController) TemplateEditVisible() { |
|
|
msg = protocol.NewReturnResponse(rsp, err)
|
|
|
}
|
|
|
|
|
|
//TemplateEditSort 编辑模板排序
|
|
|
//@router /templateEditSort [post]
|
|
|
func (this *TemplateController) TemplateEditSort() {
|
|
|
var msg *protocol.ResponseMessage
|
|
|
defer func() {
|
|
|
this.ResposeJson(msg)
|
|
|
}()
|
|
|
var request *protocol.TemplateEditSortRequest
|
|
|
|
|
|
if err := json.Unmarshal(this.Ctx.Input.RequestBody, &request); err != nil {
|
|
|
log.Error("json 解析失败", err)
|
|
|
msg = protocol.BadRequestParam("1")
|
|
|
return
|
|
|
}
|
|
|
uid := this.GetUserId()
|
|
|
companyId := this.GetCompanyId()
|
|
|
if companyId <= 0 {
|
|
|
log.Debug("companyId:%d err", companyId)
|
|
|
msg = protocol.BadRequestParam("1")
|
|
|
return
|
|
|
}
|
|
|
if b, m := this.Valid(request); !b {
|
|
|
msg = m
|
|
|
return
|
|
|
}
|
|
|
rsp, err := audit.TemplateEditSort(uid, companyId, request)
|
|
|
msg = protocol.NewReturnResponse(rsp, err)
|
|
|
}
|
|
|
|
|
|
//TemplateOperateCategory
|
|
|
//@router /templateOperateCategory [post]
|
|
|
func (this *TemplateController) TemplateOperateCategory() {
|
...
|
...
|
|