作者 郑周

1. 优化编辑上级ID,传0或不传 取消员工的上级

@@ -6,7 +6,7 @@ import ( @@ -6,7 +6,7 @@ import (
6 6
7 type EditParentCommand struct { 7 type EditParentCommand struct {
8 Id int64 `cname:"用户ID" json:"id,string" valid:"Required"` 8 Id int64 `cname:"用户ID" json:"id,string" valid:"Required"`
9 - ParentId int64 `cname:"上级ID" json:"parentId"` 9 + ParentId int64 `cname:"上级ID" json:"parentId,string"`
10 CompanyId int `cname:"公司ID" json:"companyId"` 10 CompanyId int `cname:"公司ID" json:"companyId"`
11 OperatorId int `cname:"操作人ID" json:"operatorId"` 11 OperatorId int `cname:"操作人ID" json:"operatorId"`
12 } 12 }