|
@@ -59,10 +59,9 @@ func DepIsShow(c *gin.Context) {
|
|
|
func DepCreateOrUpdate(c *gin.Context) {
|
|
|
var req pasturePb.SearchDeptRequest
|
|
|
if err := ginutil.BindProto(c, &req); err != nil {
|
|
|
- apierr.AbortBadRequest(c, http.StatusOK, err)
|
|
|
+ apierr.ClassifiedAbort(c, err)
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
if err := middleware.Dependency(c).StoreEventHub.OpsService.SystemDeptCreateOrUpdate(c, &req); err != nil {
|
|
|
apierr.ClassifiedAbort(c, err)
|
|
|
return
|