| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | [HttpPost("ApproveUser")] |
| | | public ResponseResult ApproveUser(OaToMesUser queryObj) |
| | | { |
| | | try |
| | | { |
| | | string rtnMsg = m.ApproveUser(queryObj); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = rtnMsg, |
| | | data = null |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | [HttpPost("ApproveDepartment")] |
| | | public ResponseResult ApproveDepartment(OaToMesDepartment queryObj) |
| | | { |
| | | try |
| | | { |
| | | string rtnMsg = m.ApproveDepartment(queryObj); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = rtnMsg, |
| | | data = null |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | } |
| | | } |