diff --git a/cmd/open_im_api/docs/docs.go b/cmd/open_im_api/docs/docs.go
index 50981d32a..183ab0bf4 100644
--- a/cmd/open_im_api/docs/docs.go
+++ b/cmd/open_im_api/docs/docs.go
@@ -2360,13 +2360,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetAllConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetAllConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2414,13 +2414,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2468,13 +2468,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2630,13 +2630,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CommentOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CommentOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2684,13 +2684,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2738,13 +2738,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateTagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateTagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2792,13 +2792,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteCommentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteCommentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2846,13 +2846,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2900,13 +2900,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteTagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteTagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2954,13 +2954,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetTagSendLogsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetTagSendLogsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3008,13 +3008,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserFriendWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserFriendWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3062,13 +3062,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagByIDResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagByIDResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3116,13 +3116,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3170,13 +3170,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3224,13 +3224,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetWorkMomentByIDResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetWorkMomentByIDResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3278,13 +3278,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.LikeOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.LikeOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3332,13 +3332,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.SendMsg2TagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.SendMsg2TagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3386,13 +3386,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.SetTagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.SetTagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3452,13 +3452,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3506,13 +3506,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3560,13 +3560,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3614,13 +3614,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3668,13 +3668,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3722,13 +3722,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3778,7 +3778,10 @@ const docTemplate = `{
"type": "object",
"properties": {
"data": {
- "$ref": "#/definitions/server_api_params.UserDepartmentMember"
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/server_api_params.UserDepartmentMember"
+ }
}
}
}
@@ -3788,13 +3791,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3836,19 +3839,34 @@ const docTemplate = `{
"0": {
"description": "",
"schema": {
- "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ "allOf": [
+ {
+ "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/server_api_params.Department"
+ }
+ }
+ }
+ }
+ ]
}
},
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3908,13 +3926,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3962,13 +3980,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.UpdateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.UpdateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4016,13 +4034,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.UpdateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.UpdateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4070,13 +4088,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.UpdateUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.UpdateUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4190,13 +4208,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.AccountCheckResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.AccountCheckResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4244,13 +4262,13 @@ const docTemplate = `{
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetAllUsersUidResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetAllUsersUidResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -5213,10 +5231,6 @@ const docTemplate = `{
"base_info.CreateDepartmentResp": {
"type": "object",
"properties": {
- "data": {
- "type": "object",
- "additionalProperties": true
- },
"errCode": {
"type": "integer"
},
@@ -5869,13 +5883,6 @@ const docTemplate = `{
"base_info.GetDepartmentMemberResp": {
"type": "object",
"properties": {
- "data": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- }
- },
"errCode": {
"type": "integer"
},
@@ -6147,13 +6154,6 @@ const docTemplate = `{
"base_info.GetSubDepartmentResp": {
"type": "object",
"properties": {
- "data": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- }
- },
"errCode": {
"type": "integer"
},
@@ -6274,10 +6274,6 @@ const docTemplate = `{
"base_info.GetUserInDepartmentResp": {
"type": "object",
"properties": {
- "data": {
- "type": "object",
- "additionalProperties": true
- },
"errCode": {
"type": "integer"
},
diff --git a/cmd/open_im_api/docs/swagger.json b/cmd/open_im_api/docs/swagger.json
index 6e03a6912..d93a390f8 100644
--- a/cmd/open_im_api/docs/swagger.json
+++ b/cmd/open_im_api/docs/swagger.json
@@ -2352,13 +2352,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetAllConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetAllConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2406,13 +2406,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2460,13 +2460,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetConversationsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2622,13 +2622,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CommentOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CommentOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2676,13 +2676,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2730,13 +2730,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateTagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateTagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2784,13 +2784,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteCommentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteCommentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2838,13 +2838,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2892,13 +2892,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteTagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteTagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -2946,13 +2946,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetTagSendLogsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetTagSendLogsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3000,13 +3000,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserFriendWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserFriendWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3054,13 +3054,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagByIDResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagByIDResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3108,13 +3108,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserTagsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3162,13 +3162,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserWorkMomentsResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3216,13 +3216,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetWorkMomentByIDResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetWorkMomentByIDResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3270,13 +3270,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.LikeOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.LikeOneWorkMomentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3324,13 +3324,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.SendMsg2TagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.SendMsg2TagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3378,13 +3378,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.SetTagResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.SetTagResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3444,13 +3444,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3498,13 +3498,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3552,13 +3552,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.CreateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.CreateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3606,13 +3606,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3660,13 +3660,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3714,13 +3714,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.DeleteUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.DeleteUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3770,7 +3770,10 @@
"type": "object",
"properties": {
"data": {
- "$ref": "#/definitions/server_api_params.UserDepartmentMember"
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/server_api_params.UserDepartmentMember"
+ }
}
}
}
@@ -3780,13 +3783,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetDepartmentMemberResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3828,19 +3831,34 @@
"0": {
"description": "",
"schema": {
- "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ "allOf": [
+ {
+ "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/server_api_params.Department"
+ }
+ }
+ }
+ }
+ ]
}
},
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetSubDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3900,13 +3918,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -3954,13 +3972,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.UpdateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.UpdateDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4008,13 +4026,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.UpdateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.UpdateOrganizationUserResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4062,13 +4080,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.UpdateUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.UpdateUserInDepartmentResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4182,13 +4200,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.AccountCheckResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.AccountCheckResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -4236,13 +4254,13 @@
"400": {
"description": "errCode为400 一般为参数输入错误, token未带上等",
"schema": {
- "$ref": "#/definitions/base_info.GetAllUsersUidResp"
+ "$ref": "#/definitions/base_info.Swagger400Resp"
}
},
"500": {
"description": "errCode为500 一般为服务器内部错误",
"schema": {
- "$ref": "#/definitions/base_info.GetAllUsersUidResp"
+ "$ref": "#/definitions/base_info.Swagger500Resp"
}
}
}
@@ -5205,10 +5223,6 @@
"base_info.CreateDepartmentResp": {
"type": "object",
"properties": {
- "data": {
- "type": "object",
- "additionalProperties": true
- },
"errCode": {
"type": "integer"
},
@@ -5861,13 +5875,6 @@
"base_info.GetDepartmentMemberResp": {
"type": "object",
"properties": {
- "data": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- }
- },
"errCode": {
"type": "integer"
},
@@ -6139,13 +6146,6 @@
"base_info.GetSubDepartmentResp": {
"type": "object",
"properties": {
- "data": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": true
- }
- },
"errCode": {
"type": "integer"
},
@@ -6266,10 +6266,6 @@
"base_info.GetUserInDepartmentResp": {
"type": "object",
"properties": {
- "data": {
- "type": "object",
- "additionalProperties": true
- },
"errCode": {
"type": "integer"
},
diff --git a/cmd/open_im_api/docs/swagger.yaml b/cmd/open_im_api/docs/swagger.yaml
index f030e5353..08b433cd2 100644
--- a/cmd/open_im_api/docs/swagger.yaml
+++ b/cmd/open_im_api/docs/swagger.yaml
@@ -438,9 +438,6 @@ definitions:
type: object
base_info.CreateDepartmentResp:
properties:
- data:
- additionalProperties: true
- type: object
errCode:
type: integer
errMsg:
@@ -872,11 +869,6 @@ definitions:
type: object
base_info.GetDepartmentMemberResp:
properties:
- data:
- items:
- additionalProperties: true
- type: object
- type: array
errCode:
type: integer
errMsg:
@@ -1055,11 +1047,6 @@ definitions:
type: object
base_info.GetSubDepartmentResp:
properties:
- data:
- items:
- additionalProperties: true
- type: object
- type: array
errCode:
type: integer
errMsg:
@@ -1139,9 +1126,6 @@ definitions:
type: object
base_info.GetUserInDepartmentResp:
properties:
- data:
- additionalProperties: true
- type: object
errCode:
type: integer
errMsg:
@@ -4162,11 +4146,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetAllConversationsResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetAllConversationsResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取用户所有会话
tags:
- 会话相关
@@ -4198,11 +4182,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetConversationResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetConversationResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 根据会话ID获取会话
tags:
- 会话相关
@@ -4234,11 +4218,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetConversationsResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetConversationsResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 根据会话ID列表获取会话
tags:
- 会话相关
@@ -4333,11 +4317,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.CommentOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.CommentOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 评论一条工作圈
tags:
- 工作圈
@@ -4370,11 +4354,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.CreateOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.CreateOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 创建一条工作圈
tags:
- 工作圈
@@ -4406,11 +4390,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.CreateTagResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.CreateTagResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 创建标签
tags:
- 标签
@@ -4442,11 +4426,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.DeleteCommentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.DeleteCommentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 删除一条评论
tags:
- 工作圈
@@ -4478,11 +4462,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.DeleteOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.DeleteOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 删除一条工作圈
tags:
- 工作圈
@@ -4514,11 +4498,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.DeleteTagResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.DeleteTagResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 删除标签
tags:
- 标签
@@ -4550,11 +4534,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetTagSendLogsResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetTagSendLogsResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取发送历史记录
tags:
- 标签
@@ -4586,11 +4570,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetUserFriendWorkMomentsResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetUserFriendWorkMomentsResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 查询自己大工作圈页面
tags:
- 工作圈
@@ -4622,11 +4606,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetUserTagByIDResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetUserTagByIDResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取该用户的标签信息
tags:
- 标签
@@ -4658,11 +4642,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetUserTagsResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetUserTagsResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取用户标签信息
tags:
- 标签
@@ -4694,11 +4678,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetUserWorkMomentsResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetUserWorkMomentsResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 查询用户工作圈
tags:
- 工作圈
@@ -4730,11 +4714,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetWorkMomentByIDResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetWorkMomentByIDResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 通过ID获取工作圈
tags:
- 工作圈
@@ -4766,11 +4750,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.LikeOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.LikeOneWorkMomentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 点赞一条工作圈
tags:
- 工作圈
@@ -4802,11 +4786,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.SendMsg2TagResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.SendMsg2TagResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 发送标签消息
tags:
- 标签
@@ -4838,11 +4822,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.SetTagResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.SetTagResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 修改标签
tags:
- 标签
@@ -4879,11 +4863,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.CreateDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.CreateDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 创建部门
tags:
- 组织架构相关
@@ -4915,11 +4899,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.CreateDepartmentMemberResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.CreateDepartmentMemberResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 创建部门用户
tags:
- 组织架构相关
@@ -4951,11 +4935,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.CreateOrganizationUserResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.CreateOrganizationUserResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 组织架构导入用户
tags:
- 组织架构相关
@@ -4987,11 +4971,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.DeleteDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.DeleteDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 删除部门
tags:
- 组织架构相关
@@ -5023,11 +5007,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.DeleteOrganizationUserResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.DeleteOrganizationUserResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 删除组织架构中某个用户
tags:
- 组织架构相关
@@ -5059,11 +5043,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.DeleteUserInDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.DeleteUserInDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 删除部门中某个用户
tags:
- 组织架构相关
@@ -5095,16 +5079,18 @@ paths:
- $ref: '#/definitions/base_info.GetDepartmentMemberResp'
- properties:
data:
- $ref: '#/definitions/server_api_params.UserDepartmentMember'
+ items:
+ $ref: '#/definitions/server_api_params.UserDepartmentMember'
+ type: array
type: object
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetDepartmentMemberResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetDepartmentMemberResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取部门中所有成员
tags:
- 组织架构相关
@@ -5132,15 +5118,22 @@ paths:
"0":
description: ""
schema:
- $ref: '#/definitions/base_info.GetSubDepartmentResp'
+ allOf:
+ - $ref: '#/definitions/base_info.GetSubDepartmentResp'
+ - properties:
+ data:
+ items:
+ $ref: '#/definitions/server_api_params.Department'
+ type: array
+ type: object
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetSubDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetSubDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取子部门列表
tags:
- 组织架构相关
@@ -5177,11 +5170,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetUserInDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetUserInDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取部门中的所有用户
tags:
- 组织架构相关
@@ -5213,11 +5206,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.UpdateDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.UpdateDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 更新部门信息
tags:
- 组织架构相关
@@ -5249,11 +5242,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.UpdateOrganizationUserResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.UpdateOrganizationUserResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 更新组织架构中的用户
tags:
- 组织架构相关
@@ -5285,11 +5278,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.UpdateUserInDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.UpdateUserInDepartmentResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 更新部门中某个用户
tags:
- 组织架构相关
@@ -5366,11 +5359,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.AccountCheckResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.AccountCheckResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 检查列表账户注册状态,并且返回结果
tags:
- 用户相关
@@ -5402,11 +5395,11 @@ paths:
"400":
description: errCode为400 一般为参数输入错误, token未带上等
schema:
- $ref: '#/definitions/base_info.GetAllUsersUidResp'
+ $ref: '#/definitions/base_info.Swagger400Resp'
"500":
description: errCode为500 一般为服务器内部错误
schema:
- $ref: '#/definitions/base_info.GetAllUsersUidResp'
+ $ref: '#/definitions/base_info.Swagger500Resp'
summary: 获取所有用户uid列表
tags:
- 用户相关
diff --git a/internal/api/conversation/conversation.go b/internal/api/conversation/conversation.go
index 36d7388bf..2c26d4f0e 100644
--- a/internal/api/conversation/conversation.go
+++ b/internal/api/conversation/conversation.go
@@ -136,8 +136,8 @@ func BatchSetConversations(c *gin.Context) {
// @Param req body api.GetAllConversationsReq true "ownerUserID为要获取的用户ID"
// @Produce json
// @Success 0 {object} api.GetAllConversationsResp
-// @Failure 500 {object} api.GetAllConversationsResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetAllConversationsResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /msg/get_all_conversations [post]
func GetAllConversations(c *gin.Context) {
var (
@@ -186,8 +186,8 @@ func GetAllConversations(c *gin.Context) {
// @Param req body api.GetConversationReq true "ownerUserID为要获取的用户ID
conversationID为要获取的会话ID"
// @Produce json
// @Success 0 {object} api.GetConversationResp
-// @Failure 500 {object} api.GetConversationResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetConversationResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /msg/get_conversation [post]
func GetConversation(c *gin.Context) {
var (
@@ -236,8 +236,8 @@ func GetConversation(c *gin.Context) {
// @Param req body api.GetConversationsReq true "ownerUserID为要获取的用户ID
conversationIDs为要获取的会话ID列表"
// @Produce json
// @Success 0 {object} api.GetConversationsResp
-// @Failure 500 {object} api.GetConversationsResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetConversationsResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /msg/get_conversations [post]
func GetConversations(c *gin.Context) {
var (
diff --git a/internal/api/manage/management_user.go b/internal/api/manage/management_user.go
index 775c31366..3d2c89a65 100644
--- a/internal/api/manage/management_user.go
+++ b/internal/api/manage/management_user.go
@@ -74,8 +74,8 @@ func DeleteUser(c *gin.Context) {
// @Param req body api.GetAllUsersUidReq true "请求体"
// @Produce json
// @Success 0 {object} api.GetAllUsersUidResp
-// @Failure 500 {object} api.GetAllUsersUidResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetAllUsersUidResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /user/get_all_users_uid [post]
func GetAllUsersUid(c *gin.Context) {
params := api.GetAllUsersUidReq{}
@@ -129,8 +129,8 @@ func GetAllUsersUid(c *gin.Context) {
// @Param req body api.AccountCheckReq true "请求体"
// @Produce json
// @Success 0 {object} api.AccountCheckResp
-// @Failure 500 {object} api.AccountCheckResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.AccountCheckResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /user/account_check [post]
func AccountCheck(c *gin.Context) {
params := api.AccountCheckReq{}
diff --git a/internal/api/office/tag.go b/internal/api/office/tag.go
index b23c75826..c64e736cd 100644
--- a/internal/api/office/tag.go
+++ b/internal/api/office/tag.go
@@ -25,8 +25,8 @@ import (
// @Param req body api.GetUserTagsReq true "请求"
// @Produce json
// @Success 0 {object} api.GetUserTagsResp
-// @Failure 500 {object} api.GetUserTagsResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetUserTagsResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/get_user_tags [post]
func GetUserTags(c *gin.Context) {
var (
@@ -88,8 +88,8 @@ func GetUserTags(c *gin.Context) {
// @Param req body api.CreateTagReq true "请求"
// @Produce json
// @Success 0 {object} api.CreateTagResp
-// @Failure 500 {object} api.CreateTagResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.CreateTagResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/create_tag [post]
func CreateTag(c *gin.Context) {
var (
@@ -148,8 +148,8 @@ func CreateTag(c *gin.Context) {
// @Param req body api.DeleteTagReq true "请求"
// @Produce json
// @Success 0 {object} api.DeleteTagResp
-// @Failure 500 {object} api.DeleteTagResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.DeleteTagResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/delete_tag [post]
func DeleteTag(c *gin.Context) {
var (
@@ -208,8 +208,8 @@ func DeleteTag(c *gin.Context) {
// @Param req body api.SetTagReq true "请求"
// @Produce json
// @Success 0 {object} api.SetTagResp
-// @Failure 500 {object} api.SetTagResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.SetTagResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/set_tag [post]
func SetTag(c *gin.Context) {
var (
@@ -268,8 +268,8 @@ func SetTag(c *gin.Context) {
// @Param req body api.SendMsg2TagReq true "请求"
// @Produce json
// @Success 0 {object} api.SendMsg2TagResp
-// @Failure 500 {object} api.SendMsg2TagResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.SendMsg2TagResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/send_msg_to_tag [post]
func SendMsg2Tag(c *gin.Context) {
var (
@@ -328,8 +328,8 @@ func SendMsg2Tag(c *gin.Context) {
// @Param req body api.GetTagSendLogsReq true "请求"
// @Produce json
// @Success 0 {object} api.GetTagSendLogsResp
-// @Failure 500 {object} api.GetTagSendLogsResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetTagSendLogsResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/get_send_tag_log [post]
func GetTagSendLogs(c *gin.Context) {
var (
@@ -398,8 +398,8 @@ func GetTagSendLogs(c *gin.Context) {
// @Param req body api.GetUserTagByIDReq true "请求"
// @Produce json
// @Success 0 {object} api.GetUserTagByIDResp
-// @Failure 500 {object} api.GetUserTagByIDResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetUserTagByIDResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/get_user_tag_by_id [post]
func GetUserTagByID(c *gin.Context) {
var (
diff --git a/internal/api/office/work_moments.go b/internal/api/office/work_moments.go
index 86b3dc7bf..0c37f5b1d 100644
--- a/internal/api/office/work_moments.go
+++ b/internal/api/office/work_moments.go
@@ -24,8 +24,8 @@ import (
// @Param req body api.CreateOneWorkMomentReq true "请求 atUserList likeUserList permissionGroupList permissionUserList 字段中userName可以不填"
// @Produce json
// @Success 0 {object} api.CreateOneWorkMomentResp
-// @Failure 500 {object} api.CreateOneWorkMomentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.CreateOneWorkMomentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/create_one_work_moment [post]
func CreateOneWorkMoment(c *gin.Context) {
var (
@@ -88,8 +88,8 @@ func CreateOneWorkMoment(c *gin.Context) {
// @Param req body api.DeleteOneWorkMomentReq true "请求"
// @Produce json
// @Success 0 {object} api.DeleteOneWorkMomentResp
-// @Failure 500 {object} api.DeleteOneWorkMomentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.DeleteOneWorkMomentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/delete_one_work_moment [post]
func DeleteOneWorkMoment(c *gin.Context) {
var (
@@ -151,8 +151,8 @@ func DeleteOneWorkMoment(c *gin.Context) {
// @Param req body api.LikeOneWorkMomentReq true "请求"
// @Produce json
// @Success 0 {object} api.LikeOneWorkMomentResp
-// @Failure 500 {object} api.LikeOneWorkMomentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.LikeOneWorkMomentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/like_one_work_moment [post]
func LikeOneWorkMoment(c *gin.Context) {
var (
@@ -213,8 +213,8 @@ func LikeOneWorkMoment(c *gin.Context) {
// @Param req body api.CommentOneWorkMomentReq true "请求"
// @Produce json
// @Success 0 {object} api.CommentOneWorkMomentResp
-// @Failure 500 {object} api.CommentOneWorkMomentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.CommentOneWorkMomentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/comment_one_work_moment [post]
func CommentOneWorkMoment(c *gin.Context) {
var (
@@ -275,8 +275,8 @@ func CommentOneWorkMoment(c *gin.Context) {
// @Param req body api.DeleteCommentReq true "请求"
// @Produce json
// @Success 0 {object} api.DeleteCommentResp
-// @Failure 500 {object} api.DeleteCommentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.DeleteCommentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/delete_comment [post]
func DeleteComment(c *gin.Context) {
var (
@@ -335,8 +335,8 @@ func DeleteComment(c *gin.Context) {
// @Param req body api.GetWorkMomentByIDReq true "请求"
// @Produce json
// @Success 0 {object} api.GetWorkMomentByIDResp
-// @Failure 500 {object} api.GetWorkMomentByIDResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetWorkMomentByIDResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/get_work_moment_by_id [post]
func GetWorkMomentByID(c *gin.Context) {
var (
@@ -401,8 +401,8 @@ func GetWorkMomentByID(c *gin.Context) {
// @Param req body api.GetUserWorkMomentsReq true "请求"
// @Produce json
// @Success 0 {object} api.GetUserWorkMomentsResp
-// @Failure 500 {object} api.GetUserWorkMomentsResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetUserWorkMomentsResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/get_user_work_moments [post]
func GetUserWorkMoments(c *gin.Context) {
var (
@@ -514,8 +514,8 @@ func GetUserWorkMoments(c *gin.Context) {
// @Param req body api.GetUserFriendWorkMomentsReq true "请求"
// @Produce json
// @Success 0 {object} api.GetUserFriendWorkMomentsResp
-// @Failure 500 {object} api.GetUserFriendWorkMomentsResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetUserFriendWorkMomentsResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /office/get_user_friend_work_moments [post]
func GetUserFriendWorkMoments(c *gin.Context) {
var (
diff --git a/internal/api/organization/organization.go b/internal/api/organization/organization.go
index 32273756f..1d6542306 100644
--- a/internal/api/organization/organization.go
+++ b/internal/api/organization/organization.go
@@ -25,8 +25,8 @@ import (
// @Param req body api.CreateDepartmentReq true "请求"
// @Produce json
// @Success 0 {object} api.CreateDepartmentResp{data=open_im_sdk.Department}
-// @Failure 500 {object} api.CreateDepartmentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.CreateDepartmentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/create_department [post]
func CreateDepartment(c *gin.Context) {
params := api.CreateDepartmentReq{}
@@ -80,8 +80,8 @@ func CreateDepartment(c *gin.Context) {
// @Param req body api.UpdateDepartmentReq true "请求"
// @Produce json
// @Success 0 {object} api.UpdateDepartmentResp
-// @Failure 500 {object} api.UpdateDepartmentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.UpdateDepartmentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/update_department [post]
func UpdateDepartment(c *gin.Context) {
params := api.UpdateDepartmentReq{}
@@ -133,9 +133,9 @@ func UpdateDepartment(c *gin.Context) {
// @Param token header string true "im token"
// @Param req body api.GetSubDepartmentReq true "请求"
// @Produce json
-// @Success 0 {object} api.GetSubDepartmentResp
-// @Failure 500 {object} api.GetSubDepartmentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetSubDepartmentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Success 0 {object} api.GetSubDepartmentResp{data=[]open_im_sdk.Department}
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/get_sub_department [post]
func GetSubDepartment(c *gin.Context) {
params := api.GetSubDepartmentReq{}
@@ -191,8 +191,8 @@ func GetAllDepartment(c *gin.Context) {
// @Param req body api.DeleteDepartmentReq true "请求"
// @Produce json
// @Success 0 {object} api.DeleteDepartmentResp
-// @Failure 500 {object} api.DeleteDepartmentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.DeleteDepartmentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/delete_department [post]
func DeleteDepartment(c *gin.Context) {
params := api.DeleteDepartmentReq{}
@@ -242,8 +242,8 @@ func DeleteDepartment(c *gin.Context) {
// @Param req body api.CreateOrganizationUserReq true "请求"
// @Produce json
// @Success 0 {object} api.CreateOrganizationUserResp
-// @Failure 500 {object} api.CreateOrganizationUserResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.CreateOrganizationUserResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/create_organization_user [post]
func CreateOrganizationUser(c *gin.Context) {
params := api.CreateOrganizationUserReq{}
@@ -296,8 +296,8 @@ func CreateOrganizationUser(c *gin.Context) {
// @Param req body api.UpdateOrganizationUserReq true "请求"
// @Produce json
// @Success 0 {object} api.UpdateOrganizationUserResp
-// @Failure 500 {object} api.UpdateOrganizationUserResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.UpdateOrganizationUserResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/update_organization_user [post]
func UpdateOrganizationUser(c *gin.Context) {
params := api.UpdateOrganizationUserReq{}
@@ -348,8 +348,8 @@ func UpdateOrganizationUser(c *gin.Context) {
// @Param req body api.CreateDepartmentMemberReq true "请求"
// @Produce json
// @Success 0 {object} api.CreateDepartmentMemberResp
-// @Failure 500 {object} api.CreateDepartmentMemberResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.CreateDepartmentMemberResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/create_department_member [post]
func CreateDepartmentMember(c *gin.Context) {
params := api.CreateDepartmentMemberReq{}
@@ -402,8 +402,8 @@ func CreateDepartmentMember(c *gin.Context) {
// @Param req body api.GetUserInDepartmentReq true "请求"
// @Produce json
// @Success 0 {object} api.GetUserInDepartmentResp{data=open_im_sdk.UserInDepartment}
-// @Failure 500 {object} api.GetUserInDepartmentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetUserInDepartmentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/get_user_in_department [post]
func GetUserInDepartment(c *gin.Context) {
params := api.GetUserInDepartmentReq{}
@@ -456,8 +456,8 @@ func GetUserInDepartment(c *gin.Context) {
// @Param req body api.UpdateUserInDepartmentReq true "请求"
// @Produce json
// @Success 0 {object} api.UpdateUserInDepartmentResp
-// @Failure 500 {object} api.UpdateUserInDepartmentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.UpdateUserInDepartmentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/update_user_in_department [post]
func UpdateUserInDepartment(c *gin.Context) {
params := api.UpdateUserInDepartmentReq{}
@@ -509,8 +509,8 @@ func UpdateUserInDepartment(c *gin.Context) {
// @Param req body api.DeleteOrganizationUserReq true "请求"
// @Produce json
// @Success 0 {object} api.DeleteOrganizationUserResp
-// @Failure 500 {object} api.DeleteOrganizationUserResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.DeleteOrganizationUserResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/delete_organization_user [post]
func DeleteOrganizationUser(c *gin.Context) {
params := api.DeleteOrganizationUserReq{}
@@ -561,9 +561,9 @@ func DeleteOrganizationUser(c *gin.Context) {
// @Param token header string true "im token"
// @Param req body api.GetDepartmentMemberReq true "请求"
// @Produce json
-// @Success 0 {object} api.GetDepartmentMemberResp{data=open_im_sdk.UserDepartmentMember}
-// @Failure 500 {object} api.GetDepartmentMemberResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.GetDepartmentMemberResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Success 0 {object} api.GetDepartmentMemberResp{data=[]open_im_sdk.UserDepartmentMember}
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/get_department_member [post]
func GetDepartmentMember(c *gin.Context) {
params := api.GetDepartmentMemberReq{}
@@ -572,7 +572,6 @@ func GetDepartmentMember(c *gin.Context) {
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
return
}
-
req := &rpc.GetDepartmentMemberReq{}
utils.CopyStructFields(req, ¶ms)
@@ -616,8 +615,8 @@ func GetDepartmentMember(c *gin.Context) {
// @Param req body api.DeleteUserInDepartmentReq true "请求"
// @Produce json
// @Success 0 {object} api.DeleteUserInDepartmentResp
-// @Failure 500 {object} api.DeleteUserInDepartmentResp "errCode为500 一般为服务器内部错误"
-// @Failure 400 {object} api.DeleteUserInDepartmentResp "errCode为400 一般为参数输入错误, token未带上等"
+// @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误"
+// @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等"
// @Router /organization/delete_user_in_department [post]
func DeleteUserInDepartment(c *gin.Context) {
params := api.DeleteUserInDepartmentReq{}
diff --git a/pkg/base_info/organization_api_struct.go b/pkg/base_info/organization_api_struct.go
index 31a9c038b..b3c77ad8f 100644
--- a/pkg/base_info/organization_api_struct.go
+++ b/pkg/base_info/organization_api_struct.go
@@ -9,7 +9,7 @@ type CreateDepartmentReq struct {
type CreateDepartmentResp struct {
CommResp
Department *open_im_sdk.Department `json:"-"`
- Data map[string]interface{} `json:"data"`
+ Data map[string]interface{} `json:"data" swaggerignore:"true"`
}
type UpdateDepartmentReq struct {
@@ -28,7 +28,7 @@ type GetSubDepartmentReq struct {
type GetSubDepartmentResp struct {
CommResp
DepartmentList []*open_im_sdk.Department `json:"-"`
- Data []map[string]interface{} `json:"data"`
+ Data []map[string]interface{} `json:"data" swaggerignore:"true"`
}
type DeleteDepartmentReq struct {
@@ -71,7 +71,7 @@ type GetUserInDepartmentReq struct {
type GetUserInDepartmentResp struct {
CommResp
UserInDepartment *open_im_sdk.UserInDepartment `json:"-"`
- Data map[string]interface{} `json:"data"`
+ Data map[string]interface{} `json:"data" swaggerignore:"true"`
}
type UpdateUserInDepartmentReq struct {
@@ -97,7 +97,7 @@ type GetDepartmentMemberReq struct {
type GetDepartmentMemberResp struct {
CommResp
UserInDepartmentList []*open_im_sdk.UserDepartmentMember `json:"-"`
- Data []map[string]interface{} `json:"data"`
+ Data []map[string]interface{} `json:"data" swaggerignore:"true"`
}
type DeleteUserInDepartmentReq struct {