organization

pull/218/head
skiffer-git 3 years ago
parent bbcb3e9403
commit f4dcae722c

@ -24,7 +24,7 @@ func CreateDepartment(c *gin.Context) {
}
req := &rpc.CreateDepartmentReq{}
utils.CopyStructFields(req, &params)
utils.CopyStructFields(req.DepartmentInfo, &params.Department)
utils.CopyStructFields(req.DepartmentInfo, params.Department)
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
req.OpUserID = opUserID
if err != nil {

Loading…
Cancel
Save