organization

This commit is contained in:
skiffer-git
2022-04-16 21:20:17 +08:00
parent 4a7f406edb
commit b4ab2c69ae
2 changed files with 2 additions and 1 deletions
@@ -24,6 +24,7 @@ func CreateDepartment(c *gin.Context) {
}
req := &rpc.CreateDepartmentReq{}
utils.CopyStructFields(req, &params)
utils.CopyStructFields(req.DepartmentInfo, &params)
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
req.OpUserID = opUserID
if err != nil {