...
|
...
|
@@ -15,15 +15,15 @@ |
|
|
"application/json"
|
|
|
],
|
|
|
"paths": {
|
|
|
"v1/mini/article_tag": {
|
|
|
"delete": {
|
|
|
"summary": "后台删除文章标签",
|
|
|
"operationId": "DeleteTag",
|
|
|
"v1/mini/article": {
|
|
|
"post": {
|
|
|
"summary": "小程序创建发布内容",
|
|
|
"operationId": "MiniCreateArticle",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagDeleteResponse"
|
|
|
"$ref": "#/definitions/MiniArticleCreateResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -33,23 +33,25 @@ |
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagDeleteRequest"
|
|
|
"$ref": "#/definitions/MiniArticleCreateRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
"article"
|
|
|
]
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/article/search/me": {
|
|
|
"post": {
|
|
|
"summary": "后台创建文章标签",
|
|
|
"operationId": "CreateTag",
|
|
|
"summary": "小程序获取我发布的文章",
|
|
|
"operationId": "MiniArticleSearchMe",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagCreateResponse"
|
|
|
"$ref": "#/definitions/MiniArticleSearchMeResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -59,23 +61,25 @@ |
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagCreateRequest"
|
|
|
"$ref": "#/definitions/MiniArticleSearchMeRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
"article"
|
|
|
]
|
|
|
},
|
|
|
"put": {
|
|
|
"summary": "后台编辑文章标签",
|
|
|
"operationId": "EditTag",
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/article/user_like/list": {
|
|
|
"post": {
|
|
|
"summary": "小程序获取文章的点赞人员列表",
|
|
|
"operationId": "MiniUserLikeArticle",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagEditResponse"
|
|
|
"$ref": "#/definitions/MiniUserLikeArticleResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -85,25 +89,53 @@ |
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagEditRequest"
|
|
|
"$ref": "#/definitions/MiniUserLikeArticleRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
"article"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/article/user_like/set": {
|
|
|
"post": {
|
|
|
"summary": "小程序人员操作点赞文章/评论",
|
|
|
"operationId": "MiniSetUserLike",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/MiniSetUserLikeResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/MiniSetUserLikeRequset"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"article"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/article_tag/{id}": {
|
|
|
"v1/mini/article/{id}": {
|
|
|
"get": {
|
|
|
"summary": "后台获取文章标签",
|
|
|
"operationId": "GetTag",
|
|
|
"summary": "小程序获取文章内容详情",
|
|
|
"operationId": "MiniGetArticle",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagGetResponse"
|
|
|
"$ref": "#/definitions/MiniArticleGetResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -113,18 +145,11 @@ |
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "query",
|
|
|
"required": true,
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
"article"
|
|
|
]
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -374,7 +399,7 @@ |
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/UserSearchResponse"
|
|
|
"$ref": "#/definitions/MiniUserFollowedSearchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -384,7 +409,7 @@ |
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/UserSearchRequest"
|
|
|
"$ref": "#/definitions/MiniUserFollowedSearchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
...
|
...
|
@@ -402,7 +427,7 @@ |
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/UserSearchResponse"
|
|
|
"$ref": "#/definitions/MiniUserFollowedSearchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -412,7 +437,7 @@ |
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/UserSearchRequest"
|
|
|
"$ref": "#/definitions/MiniUserFollowedSearchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
...
|
...
|
@@ -478,6 +503,34 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/user/switch-account": {
|
|
|
"post": {
|
|
|
"summary": "切换账号",
|
|
|
"operationId": "miniUserSwitchAccount",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/MiniUserLoginResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/MiniUserSwitchAccountRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"user"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/user/unfollow": {
|
|
|
"post": {
|
|
|
"summary": "取消关注",
|
...
|
...
|
@@ -504,6 +557,146 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_tag": {
|
|
|
"post": {
|
|
|
"summary": "后台创建文章标签",
|
|
|
"operationId": "CreateTag",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagCreateResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagCreateRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
},
|
|
|
"put": {
|
|
|
"summary": "后台编辑文章标签",
|
|
|
"operationId": "EditTag",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagEditResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagEditRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_tag/search": {
|
|
|
"post": {
|
|
|
"summary": "后台搜索标签",
|
|
|
"operationId": "SearchTag",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagListResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagListRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_tag/{id}": {
|
|
|
"get": {
|
|
|
"summary": "后台获取文章标签",
|
|
|
"operationId": "GetTag",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagGetResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
},
|
|
|
"delete": {
|
|
|
"summary": "后台删除文章标签",
|
|
|
"operationId": "DeleteTag",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagDeleteResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/TagDeleteRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/comment": {
|
|
|
"get": {
|
|
|
"summary": "系统评论",
|
...
|
...
|
@@ -549,64 +742,911 @@ |
|
|
"company"
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"definitions": {
|
|
|
"Comment": {
|
|
|
"type": "object",
|
|
|
"title": "Comment"
|
|
|
},
|
|
|
"CommentRequest": {
|
|
|
"type": "object",
|
|
|
"title": "CommentRequest"
|
|
|
},
|
|
|
"CommentResposne": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Comment"
|
|
|
"v1/system/role": {
|
|
|
"post": {
|
|
|
"operationId": "systemSaveRole",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleSaveResponse"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"title": "CommentResposne",
|
|
|
"required": [
|
|
|
"list"
|
|
|
]
|
|
|
},
|
|
|
"Company": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 唯一标识"
|
|
|
},
|
|
|
"name": {
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleSaveRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"role"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/role/search": {
|
|
|
"post": {
|
|
|
"operationId": "systemSearchRole",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleSearchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleSearchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"role"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/role/{id}": {
|
|
|
"delete": {
|
|
|
"operationId": "systemDeleteRole",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleDeleteResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleDeleteRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"role"
|
|
|
]
|
|
|
},
|
|
|
"post": {
|
|
|
"operationId": "systemGetRole",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleGetResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleGetRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"role"
|
|
|
]
|
|
|
},
|
|
|
"put": {
|
|
|
"operationId": "systemUpdateRole",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleUpdateResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/RoleUpdateRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"role"
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"definitions": {
|
|
|
"Account": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 公司ID"
|
|
|
},
|
|
|
"companyName": {
|
|
|
"type": "string",
|
|
|
"description": " 公司名称"
|
|
|
},
|
|
|
"logo": {
|
|
|
"type": "string",
|
|
|
"description": " 公司图标"
|
|
|
},
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 用户ID"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"position": {
|
|
|
"type": "string",
|
|
|
"description": " 职位"
|
|
|
}
|
|
|
},
|
|
|
"title": "Account",
|
|
|
"required": [
|
|
|
"companyId",
|
|
|
"companyName",
|
|
|
"logo",
|
|
|
"userId",
|
|
|
"name",
|
|
|
"position"
|
|
|
]
|
|
|
},
|
|
|
"ArticleSearchMe": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "id"
|
|
|
},
|
|
|
"title": {
|
|
|
"type": "string",
|
|
|
"description": "标题"
|
|
|
},
|
|
|
"images": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": "图片"
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "文章的创建日期"
|
|
|
},
|
|
|
"countLove": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": "点赞数量"
|
|
|
},
|
|
|
"CountComment": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": "评论数量"
|
|
|
},
|
|
|
"show": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": "是否隐藏 [0显示、1不显示]"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleSearchMe",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"title",
|
|
|
"images",
|
|
|
"createdAt",
|
|
|
"countLove",
|
|
|
"CountComment",
|
|
|
"show"
|
|
|
]
|
|
|
},
|
|
|
"ArticleSection": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "段落id"
|
|
|
},
|
|
|
"content": {
|
|
|
"type": "string",
|
|
|
"description": " 文本内容"
|
|
|
},
|
|
|
"sortBy": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 排序"
|
|
|
},
|
|
|
"totalComment": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 评论的数量"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleSection",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"content",
|
|
|
"sortBy",
|
|
|
"totalComment"
|
|
|
]
|
|
|
},
|
|
|
"Auth": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " ID"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"code": {
|
|
|
"type": "string",
|
|
|
"description": " 编码(搜索使用,4位字母数字)"
|
|
|
"code": {
|
|
|
"type": "string",
|
|
|
"description": " 编码"
|
|
|
}
|
|
|
},
|
|
|
"title": "Auth",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name",
|
|
|
"code"
|
|
|
]
|
|
|
},
|
|
|
"Author": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 人员id"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 人员的名字"
|
|
|
},
|
|
|
"avatar": {
|
|
|
"type": "string",
|
|
|
"description": " 人员头像URL"
|
|
|
},
|
|
|
"group": {
|
|
|
"type": "string",
|
|
|
"description": " 人员的分组"
|
|
|
},
|
|
|
"position": {
|
|
|
"type": "string",
|
|
|
"description": " 职位"
|
|
|
},
|
|
|
"company": {
|
|
|
"type": "string",
|
|
|
"description": " 公司"
|
|
|
}
|
|
|
},
|
|
|
"title": "Author",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name",
|
|
|
"avatar",
|
|
|
"group",
|
|
|
"position",
|
|
|
"company"
|
|
|
]
|
|
|
},
|
|
|
"Comment": {
|
|
|
"type": "object",
|
|
|
"title": "Comment"
|
|
|
},
|
|
|
"CommentRequest": {
|
|
|
"type": "object",
|
|
|
"title": "CommentRequest"
|
|
|
},
|
|
|
"CommentResposne": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Comment"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"title": "CommentResposne",
|
|
|
"required": [
|
|
|
"list"
|
|
|
]
|
|
|
},
|
|
|
"Company": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 唯一标识"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"code": {
|
|
|
"type": "string",
|
|
|
"description": " 编码(搜索使用,4位字母数字)"
|
|
|
},
|
|
|
"logo": {
|
|
|
"type": "string",
|
|
|
"description": " 公司LOGO"
|
|
|
}
|
|
|
},
|
|
|
"title": "Company",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name",
|
|
|
"code",
|
|
|
"logo"
|
|
|
]
|
|
|
},
|
|
|
"CompanySearchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 按用户搜索"
|
|
|
},
|
|
|
"code": {
|
|
|
"type": "string",
|
|
|
"description": " 按编码搜索"
|
|
|
}
|
|
|
},
|
|
|
"title": "CompanySearchRequest",
|
|
|
"required": [
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
},
|
|
|
"CompanySearchResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Company"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "CompanySearchResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"Department": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 部门ID"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 公司ID"
|
|
|
},
|
|
|
"parentId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 父级ID"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 部门名称"
|
|
|
}
|
|
|
},
|
|
|
"title": "Department",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"companyId",
|
|
|
"parentId",
|
|
|
"name"
|
|
|
]
|
|
|
},
|
|
|
"FollowRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "FollowRequest",
|
|
|
"required": [
|
|
|
"userId"
|
|
|
]
|
|
|
},
|
|
|
"Location": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"longitude": {
|
|
|
"type": "number",
|
|
|
"format": "double",
|
|
|
"description": "经度"
|
|
|
},
|
|
|
"latitude": {
|
|
|
"type": "number",
|
|
|
"format": "double",
|
|
|
"description": "纬度"
|
|
|
},
|
|
|
"descript": {
|
|
|
"type": "string",
|
|
|
"description": "地点描述"
|
|
|
}
|
|
|
},
|
|
|
"title": "Location"
|
|
|
},
|
|
|
"MessageBusinessItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"type": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 分类 (1回复 2点赞 3被采纳)"
|
|
|
},
|
|
|
"optType": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 操作类型(1针对文章、1针对评论、2针对圆桌)"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 操作人公司ID"
|
|
|
},
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 操作人用户ID"
|
|
|
},
|
|
|
"recipientId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 接收者ID"
|
|
|
},
|
|
|
"articleId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 文章ID"
|
|
|
},
|
|
|
"commentId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 评论ID"
|
|
|
},
|
|
|
"discussionId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 圆桌ID"
|
|
|
},
|
|
|
"discussionOpinionId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 观点ID"
|
|
|
},
|
|
|
"content": {
|
|
|
"type": "string",
|
|
|
"description": " 消息内容"
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 创建时间"
|
|
|
},
|
|
|
"user": {
|
|
|
"$ref": "#/definitions/User",
|
|
|
"description": " 操作人"
|
|
|
},
|
|
|
"article": {
|
|
|
"$ref": "#/definitions/SimpleArticle",
|
|
|
"description": " 文章"
|
|
|
},
|
|
|
"comment": {
|
|
|
"$ref": "#/definitions/Comment",
|
|
|
"description": " 评论(不一定是自己,可能是被人@到)"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageBusinessItem",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"type",
|
|
|
"optType",
|
|
|
"companyId",
|
|
|
"userId",
|
|
|
"recipientId",
|
|
|
"articleId",
|
|
|
"commentId",
|
|
|
"discussionId",
|
|
|
"discussionOpinionId",
|
|
|
"content",
|
|
|
"createdAt",
|
|
|
"user",
|
|
|
"article",
|
|
|
"comment"
|
|
|
]
|
|
|
},
|
|
|
"MessageBusinessRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"type": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageBusinessRequest",
|
|
|
"required": [
|
|
|
"type",
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
},
|
|
|
"MessageBusinessResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/MessageBusinessItem"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageBusinessResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"MessageSystemItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " ID"
|
|
|
},
|
|
|
"type": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 系统分类"
|
|
|
},
|
|
|
"title": {
|
|
|
"type": "string",
|
|
|
"description": " 标题"
|
|
|
},
|
|
|
"content": {
|
|
|
"type": "string",
|
|
|
"description": " 内容"
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 创建时间"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageSystemItem",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"type",
|
|
|
"title",
|
|
|
"content",
|
|
|
"createdAt"
|
|
|
]
|
|
|
},
|
|
|
"MessageSystemRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageSystemRequest",
|
|
|
"required": [
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
},
|
|
|
"MessageSystemResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/MessageSystemItem"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageSystemResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"MiniArticleCreateRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"title": {
|
|
|
"type": "string",
|
|
|
"description": "标题"
|
|
|
},
|
|
|
"section": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": "文章的文本内容"
|
|
|
},
|
|
|
"authorId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "发布人id"
|
|
|
},
|
|
|
"images": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": "图片"
|
|
|
},
|
|
|
"whoRead": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": "谁可查看"
|
|
|
},
|
|
|
"whoReview": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": "谁可评论"
|
|
|
},
|
|
|
"location": {
|
|
|
"$ref": "#/definitions/Location",
|
|
|
"description": "定位坐标"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniArticleCreateRequest",
|
|
|
"required": [
|
|
|
"title",
|
|
|
"section"
|
|
|
]
|
|
|
},
|
|
|
"MiniArticleCreateResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniArticleCreateResponse",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"MiniArticleGetRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "id"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniArticleGetRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"-"
|
|
|
]
|
|
|
},
|
|
|
"MiniArticleGetResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "id"
|
|
|
},
|
|
|
"logo": {
|
|
|
"title": {
|
|
|
"type": "string",
|
|
|
"description": " 公司LOGO"
|
|
|
"description": "标题"
|
|
|
},
|
|
|
"authorId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "发布人id"
|
|
|
},
|
|
|
"author": {
|
|
|
"$ref": "#/definitions/Author",
|
|
|
"description": "发布人"
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "文章的发布时间"
|
|
|
},
|
|
|
"section": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/ArticleSection"
|
|
|
},
|
|
|
"description": "文章的文本内容"
|
|
|
},
|
|
|
"images": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": "图片"
|
|
|
},
|
|
|
"whoRead": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": "谁可查看"
|
|
|
},
|
|
|
"whoReview": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": "谁可评论"
|
|
|
},
|
|
|
"location": {
|
|
|
"$ref": "#/definitions/Location",
|
|
|
"description": "定位坐标"
|
|
|
},
|
|
|
"countLove": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 点赞数量"
|
|
|
},
|
|
|
"countComment": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 评论数量"
|
|
|
},
|
|
|
"countRead": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 浏览数量"
|
|
|
},
|
|
|
"show": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 评论的展示状态(0显示、1不显示)"
|
|
|
}
|
|
|
},
|
|
|
"title": "Company",
|
|
|
"title": "MiniArticleGetResponse",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name",
|
|
|
"code",
|
|
|
"logo"
|
|
|
"title",
|
|
|
"authorId",
|
|
|
"author",
|
|
|
"createdAt",
|
|
|
"section",
|
|
|
"images",
|
|
|
"whoRead",
|
|
|
"whoReview",
|
|
|
"location",
|
|
|
"countLove",
|
|
|
"countComment",
|
|
|
"countRead",
|
|
|
"show"
|
|
|
]
|
|
|
},
|
|
|
"CompanySearchRequest": {
|
|
|
"MiniArticleSearchMeRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"authorId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
...
|
...
|
@@ -614,462 +1654,571 @@ |
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 按用户搜索"
|
|
|
},
|
|
|
"code": {
|
|
|
"type": "string",
|
|
|
"description": " 按编码搜索"
|
|
|
}
|
|
|
},
|
|
|
"title": "CompanySearchRequest",
|
|
|
"title": "MiniArticleSearchMeRequest",
|
|
|
"required": [
|
|
|
"-",
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
},
|
|
|
"CompanySearchResponse": {
|
|
|
"MiniArticleSearchMeResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Company"
|
|
|
"$ref": "#/definitions/ArticleSearchMe"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "CompanySearchResponse",
|
|
|
"title": "MiniArticleSearchMeResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
"total",
|
|
|
"list"
|
|
|
]
|
|
|
},
|
|
|
"Department": {
|
|
|
"MiniSetUserLikeRequset": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"articleId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 部门ID"
|
|
|
"description": "文章id"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"commentId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 公司ID"
|
|
|
"description": "评论id"
|
|
|
},
|
|
|
"parentId": {
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 父级ID"
|
|
|
"description": "操作人"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 部门名称"
|
|
|
"flag": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": "点赞标志 1、点赞 2 、取消点赞"
|
|
|
}
|
|
|
},
|
|
|
"title": "Department",
|
|
|
"title": "MiniSetUserLikeRequset",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"companyId",
|
|
|
"parentId",
|
|
|
"name"
|
|
|
"articleId",
|
|
|
"commentId",
|
|
|
"-",
|
|
|
"flag"
|
|
|
]
|
|
|
},
|
|
|
"FollowRequest": {
|
|
|
"MiniSetUserLikeResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"userId": {
|
|
|
"articleId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
"format": "int64",
|
|
|
"description": "文章id"
|
|
|
},
|
|
|
"commentId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "评论id"
|
|
|
},
|
|
|
"count": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": "现有的点赞数量"
|
|
|
}
|
|
|
},
|
|
|
"title": "FollowRequest",
|
|
|
"title": "MiniSetUserLikeResponse",
|
|
|
"required": [
|
|
|
"userId"
|
|
|
"articleId",
|
|
|
"commentId",
|
|
|
"count"
|
|
|
]
|
|
|
},
|
|
|
"MessageBusinessItem": {
|
|
|
"MiniUserApplyJoinCompanyRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"type": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 分类 (1回复 2点赞 3被采纳)"
|
|
|
},
|
|
|
"optType": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 操作类型(1针对文章、1针对评论、2针对圆桌)"
|
|
|
"phone": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"code": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserApplyJoinCompanyRequest",
|
|
|
"required": [
|
|
|
"phone",
|
|
|
"code"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserApplyJoinCompanyResponse": {
|
|
|
"type": "object",
|
|
|
"title": "MiniUserApplyJoinCompanyResponse"
|
|
|
},
|
|
|
"MiniUserAuditRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 操作人公司ID"
|
|
|
"description": " 用户ID"
|
|
|
},
|
|
|
"userId": {
|
|
|
"status": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 操作人用户ID"
|
|
|
"format": "int32",
|
|
|
"description": " 审核状态 1:审核通过 2:拒绝"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserAuditRequest",
|
|
|
"required": [
|
|
|
"userId",
|
|
|
"status"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserDepartmentUsersRequest": {
|
|
|
"type": "object",
|
|
|
"title": "MiniUserDepartmentUsersRequest"
|
|
|
},
|
|
|
"MiniUserDepartmentUsersResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"departments": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Department"
|
|
|
}
|
|
|
},
|
|
|
"recipientId": {
|
|
|
"users": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/UserItem"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserDepartmentUsersResponse",
|
|
|
"required": [
|
|
|
"departments",
|
|
|
"users"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserFollowedSearchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 接收者ID"
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"articleId": {
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 文章ID"
|
|
|
"format": "int32"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserFollowedSearchRequest"
|
|
|
},
|
|
|
"MiniUserFollowedSearchResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"users": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/UserFollowItem"
|
|
|
}
|
|
|
},
|
|
|
"commentId": {
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 评论ID"
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserFollowedSearchResponse",
|
|
|
"required": [
|
|
|
"users",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserInfoRequest": {
|
|
|
"type": "object",
|
|
|
"title": "MiniUserInfoRequest"
|
|
|
},
|
|
|
"MiniUserInfoResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"user": {
|
|
|
"$ref": "#/definitions/UserItem",
|
|
|
"description": " 用户信息"
|
|
|
},
|
|
|
"discussionId": {
|
|
|
"totalArticle": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 圆桌ID"
|
|
|
"description": " 累计信息发布"
|
|
|
},
|
|
|
"discussionOpinionId": {
|
|
|
"totalLoved": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 观点ID"
|
|
|
},
|
|
|
"content": {
|
|
|
"type": "string",
|
|
|
"description": " 消息内容"
|
|
|
"description": " 累计收到的赞"
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"totalAccepted": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 创建时间"
|
|
|
},
|
|
|
"user": {
|
|
|
"$ref": "#/definitions/User",
|
|
|
"description": " 操作人"
|
|
|
},
|
|
|
"article": {
|
|
|
"$ref": "#/definitions/SimpleArticle",
|
|
|
"description": " 文章"
|
|
|
"description": " 累计被采纳"
|
|
|
},
|
|
|
"comment": {
|
|
|
"$ref": "#/definitions/Comment",
|
|
|
"description": " 评论(不一定是自己,可能是被人@到)"
|
|
|
"accounts": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Account"
|
|
|
},
|
|
|
"description": " 公司账号"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageBusinessItem",
|
|
|
"title": "MiniUserInfoResponse",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"type",
|
|
|
"optType",
|
|
|
"companyId",
|
|
|
"userId",
|
|
|
"recipientId",
|
|
|
"articleId",
|
|
|
"commentId",
|
|
|
"discussionId",
|
|
|
"discussionOpinionId",
|
|
|
"content",
|
|
|
"createdAt",
|
|
|
"user",
|
|
|
"article",
|
|
|
"comment"
|
|
|
"totalArticle",
|
|
|
"totalLoved",
|
|
|
"totalAccepted",
|
|
|
"accounts"
|
|
|
]
|
|
|
},
|
|
|
"MessageBusinessRequest": {
|
|
|
"MiniUserLikeArticleRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"type": {
|
|
|
"articleId": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"format": "int64",
|
|
|
"description": " 文章id"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "公司id"
|
|
|
},
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"format": "int32",
|
|
|
"description": "分页,第几页"
|
|
|
},
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"format": "int32",
|
|
|
"description": "分页,每页几条"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageBusinessRequest",
|
|
|
"title": "MiniUserLikeArticleRequest",
|
|
|
"required": [
|
|
|
"type",
|
|
|
"articleId",
|
|
|
"-",
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
},
|
|
|
"MessageBusinessResponse": {
|
|
|
"MiniUserLikeArticleResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": "总数"
|
|
|
},
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/MessageBusinessItem"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
"$ref": "#/definitions/WhichUserLikeArticle"
|
|
|
},
|
|
|
"description": "列表"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageBusinessResponse",
|
|
|
"title": "MiniUserLikeArticleResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
"total",
|
|
|
"list"
|
|
|
]
|
|
|
},
|
|
|
"MessageSystemItem": {
|
|
|
"MiniUserLoginRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " ID"
|
|
|
"loginType": {
|
|
|
"type": "string",
|
|
|
"description": " 登录类型 wechat-login whchat-phone-login phone-password-login phone-smscode-login"
|
|
|
},
|
|
|
"type": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 系统分类"
|
|
|
"wechatAuthcode": {
|
|
|
"type": "string",
|
|
|
"description": " 微信登录 授权码"
|
|
|
},
|
|
|
"title": {
|
|
|
"wechatEncryptedData": {
|
|
|
"type": "string",
|
|
|
"description": " 标题"
|
|
|
"description": " 微信登录 加密数据"
|
|
|
},
|
|
|
"content": {
|
|
|
"wechatIV": {
|
|
|
"type": "string",
|
|
|
"description": " 内容"
|
|
|
"description": " 微信登录 加密算法初始向量"
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"phone": {
|
|
|
"type": "string",
|
|
|
"description": " 手机号"
|
|
|
},
|
|
|
"password": {
|
|
|
"type": "string",
|
|
|
"description": " 密码"
|
|
|
},
|
|
|
"smsCode": {
|
|
|
"type": "string",
|
|
|
"description": " 短信验证码"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserLoginRequest",
|
|
|
"required": [
|
|
|
"loginType"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserLoginResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"token": {
|
|
|
"type": "string",
|
|
|
"description": " x-token"
|
|
|
},
|
|
|
"phone": {
|
|
|
"type": "string",
|
|
|
"description": " 手机号"
|
|
|
},
|
|
|
"message": {
|
|
|
"type": "string",
|
|
|
"description": " 失败消息(审核中,注册成功等待审核)"
|
|
|
},
|
|
|
"success": {
|
|
|
"type": "boolean",
|
|
|
"format": "boolean",
|
|
|
"description": " 成功标识"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserLoginResponse",
|
|
|
"required": [
|
|
|
"token",
|
|
|
"phone",
|
|
|
"message",
|
|
|
"success"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserSwitchAccountRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 创建时间"
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageSystemItem",
|
|
|
"title": "MiniUserSwitchAccountRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"type",
|
|
|
"title",
|
|
|
"content",
|
|
|
"createdAt"
|
|
|
"companyId"
|
|
|
]
|
|
|
},
|
|
|
"MessageSystemRequest": {
|
|
|
"RoleDeleteRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"size": {
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "RoleDeleteRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"RoleDeleteResponse": {
|
|
|
"type": "object",
|
|
|
"title": "RoleDeleteResponse"
|
|
|
},
|
|
|
"RoleGetRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageSystemRequest",
|
|
|
"title": "RoleGetRequest",
|
|
|
"required": [
|
|
|
"page",
|
|
|
"size"
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"MessageSystemResponse": {
|
|
|
"RoleGetResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"role": {
|
|
|
"$ref": "#/definitions/RoleItem"
|
|
|
},
|
|
|
"authList": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/MessageSystemItem"
|
|
|
"$ref": "#/definitions/Auth"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MessageSystemResponse",
|
|
|
"title": "RoleGetResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
"role",
|
|
|
"authList"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserApplyJoinCompanyRequest": {
|
|
|
"RoleItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"phone": {
|
|
|
"type": "string"
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 角色ID"
|
|
|
},
|
|
|
"code": {
|
|
|
"type": "string"
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 公司ID"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 角色名称"
|
|
|
},
|
|
|
"authIds": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": " 角色权限列表"
|
|
|
},
|
|
|
"authsDesc": {
|
|
|
"type": "string",
|
|
|
"description": " 权限列表描述"
|
|
|
},
|
|
|
"usersDesc": {
|
|
|
"type": "string",
|
|
|
"description": " 用户列表描述"
|
|
|
},
|
|
|
"remark": {
|
|
|
"type": "string",
|
|
|
"description": " 备注"
|
|
|
},
|
|
|
"users": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/RoleUser"
|
|
|
},
|
|
|
"description": " 绑定的用户"
|
|
|
},
|
|
|
"updatedAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 更新时间"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserApplyJoinCompanyRequest",
|
|
|
"title": "RoleItem",
|
|
|
"required": [
|
|
|
"phone",
|
|
|
"code"
|
|
|
"name",
|
|
|
"authIds",
|
|
|
"authsDesc",
|
|
|
"usersDesc",
|
|
|
"remark",
|
|
|
"updatedAt"
|
|
|
]
|
|
|
},
|
|
|
"RoleSaveRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"role": {
|
|
|
"$ref": "#/definitions/RoleItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "RoleSaveRequest",
|
|
|
"required": [
|
|
|
"role"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserApplyJoinCompanyResponse": {
|
|
|
"RoleSaveResponse": {
|
|
|
"type": "object",
|
|
|
"title": "MiniUserApplyJoinCompanyResponse"
|
|
|
"title": "RoleSaveResponse"
|
|
|
},
|
|
|
"MiniUserAuditRequest": {
|
|
|
"RoleSearchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"userId": {
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 用户ID"
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"status": {
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 审核状态 1:审核通过 2:拒绝"
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"style": {
|
|
|
"type": "string",
|
|
|
"description": " simple:只返回角色ID名称 full:所有字段都返回"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserAuditRequest",
|
|
|
"title": "RoleSearchRequest",
|
|
|
"required": [
|
|
|
"userId",
|
|
|
"status"
|
|
|
"style"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserDepartmentUsersRequest": {
|
|
|
"type": "object",
|
|
|
"title": "MiniUserDepartmentUsersRequest"
|
|
|
},
|
|
|
"MiniUserDepartmentUsersResponse": {
|
|
|
"RoleSearchResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"departments": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Department"
|
|
|
"$ref": "#/definitions/RoleItem"
|
|
|
}
|
|
|
},
|
|
|
"users": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/UserItem"
|
|
|
}
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserDepartmentUsersResponse",
|
|
|
"title": "RoleSearchResponse",
|
|
|
"required": [
|
|
|
"departments",
|
|
|
"users"
|
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserInfoRequest": {
|
|
|
"type": "object",
|
|
|
"title": "MiniUserInfoRequest"
|
|
|
},
|
|
|
"MiniUserInfoResponse": {
|
|
|
"RoleUpdateRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"user": {
|
|
|
"$ref": "#/definitions/UserItem",
|
|
|
"description": " 用户信息"
|
|
|
},
|
|
|
"totalArticle": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 累计信息发布"
|
|
|
},
|
|
|
"totalLoved": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 累计收到的赞"
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"totalAccepted": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 累计被采纳"
|
|
|
"role": {
|
|
|
"$ref": "#/definitions/RoleItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserInfoResponse",
|
|
|
"title": "RoleUpdateRequest",
|
|
|
"required": [
|
|
|
"user",
|
|
|
"totalArticle",
|
|
|
"totalLoved",
|
|
|
"totalAccepted"
|
|
|
"id",
|
|
|
"role"
|
|
|
]
|
|
|
},
|
|
|
"MiniUserLoginRequest": {
|
|
|
"RoleUpdateResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"loginType": {
|
|
|
"type": "string",
|
|
|
"description": " 登录类型 wechat-login whchat-phone-login phone-password-login phone-smscode-login"
|
|
|
},
|
|
|
"wechatAuthcode": {
|
|
|
"type": "string",
|
|
|
"description": " 微信登录 授权码"
|
|
|
},
|
|
|
"wechatEncryptedData": {
|
|
|
"type": "string",
|
|
|
"description": " 微信登录 加密数据"
|
|
|
},
|
|
|
"wechatIV": {
|
|
|
"type": "string",
|
|
|
"description": " 微信登录 加密算法初始向量"
|
|
|
},
|
|
|
"phone": {
|
|
|
"type": "string",
|
|
|
"description": " 手机号"
|
|
|
},
|
|
|
"password": {
|
|
|
"type": "string",
|
|
|
"description": " 密码"
|
|
|
},
|
|
|
"smsCode": {
|
|
|
"type": "string",
|
|
|
"description": " 短信验证码"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserLoginRequest",
|
|
|
"required": [
|
|
|
"loginType"
|
|
|
]
|
|
|
"title": "RoleUpdateResponse"
|
|
|
},
|
|
|
"MiniUserLoginResponse": {
|
|
|
"RoleUser": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"token": {
|
|
|
"type": "string",
|
|
|
"description": " x-token"
|
|
|
},
|
|
|
"phone": {
|
|
|
"type": "string",
|
|
|
"description": " 手机号"
|
|
|
},
|
|
|
"message": {
|
|
|
"type": "string",
|
|
|
"description": " 失败消息(审核中,注册成功等待审核)"
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"success": {
|
|
|
"type": "boolean",
|
|
|
"format": "boolean",
|
|
|
"description": " 成功标识"
|
|
|
"name": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniUserLoginResponse",
|
|
|
"title": "RoleUser",
|
|
|
"required": [
|
|
|
"token",
|
|
|
"phone",
|
|
|
"message",
|
|
|
"success"
|
|
|
"id",
|
|
|
"name"
|
|
|
]
|
|
|
},
|
|
|
"SimpleArticle": {
|
...
|
...
|
@@ -1130,8 +2279,7 @@ |
|
|
"companyId",
|
|
|
"image",
|
|
|
"name",
|
|
|
"group",
|
|
|
"remark"
|
|
|
"group"
|
|
|
]
|
|
|
},
|
|
|
"TagCreateResponse": {
|
...
|
...
|
@@ -1153,11 +2301,16 @@ |
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "TagDeleteRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
"id",
|
|
|
"-"
|
|
|
]
|
|
|
},
|
|
|
"TagDeleteResponse": {
|
...
|
...
|
@@ -1203,11 +2356,10 @@ |
|
|
"title": "TagEditRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"companyId",
|
|
|
"-",
|
|
|
"image",
|
|
|
"name",
|
|
|
"group",
|
|
|
"remark"
|
|
|
"group"
|
|
|
]
|
|
|
},
|
|
|
"TagEditResponse": {
|
...
|
...
|
@@ -1229,11 +2381,16 @@ |
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "TagGetRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
"id",
|
|
|
"-"
|
|
|
]
|
|
|
},
|
|
|
"TagGetResponse": {
|
...
|
...
|
@@ -1315,12 +2472,26 @@ |
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"tagName": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"group": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"remark": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"title": "TagListRequest",
|
|
|
"required": [
|
|
|
"page",
|
|
|
"size"
|
|
|
"size",
|
|
|
"-"
|
|
|
]
|
|
|
},
|
|
|
"TagListResponse": {
|
...
|
...
|
@@ -1328,7 +2499,7 @@ |
|
|
"properties": {
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"list": {
|
|
|
"type": "array",
|
...
|
...
|
@@ -1382,7 +2553,7 @@ |
|
|
"position"
|
|
|
]
|
|
|
},
|
|
|
"UserItem": {
|
|
|
"UserFollowItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
...
|
...
|
@@ -1390,23 +2561,60 @@ |
|
|
"format": "int64",
|
|
|
"description": " 用户ID"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"companyName": {
|
|
|
"type": "string",
|
|
|
"description": " 公司名称"
|
|
|
},
|
|
|
"avatar": {
|
|
|
"type": "string",
|
|
|
"description": " 头像"
|
|
|
},
|
|
|
"position": {
|
|
|
"type": "string",
|
|
|
"description": " 职位"
|
|
|
},
|
|
|
"followed": {
|
|
|
"type": "boolean",
|
|
|
"format": "boolean",
|
|
|
"description": " 关注"
|
|
|
},
|
|
|
"mutualFollowed": {
|
|
|
"type": "boolean",
|
|
|
"format": "boolean",
|
|
|
"description": " 互相关注标识"
|
|
|
}
|
|
|
},
|
|
|
"title": "UserFollowItem",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name",
|
|
|
"companyName",
|
|
|
"avatar",
|
|
|
"position",
|
|
|
"followed",
|
|
|
"mutualFollowed"
|
|
|
]
|
|
|
},
|
|
|
"UserItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 公司ID"
|
|
|
"description": " 用户ID"
|
|
|
},
|
|
|
"departmentId": {
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 部门ID"
|
|
|
"description": " 公司ID"
|
|
|
},
|
|
|
"roleId": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": " 角色"
|
|
|
"companyName": {
|
|
|
"type": "string",
|
|
|
"description": " 公司名称"
|
|
|
},
|
|
|
"flag": {
|
|
|
"type": "integer",
|
...
|
...
|
@@ -1435,8 +2643,7 @@ |
|
|
"description": " 启用状态 1:启用 2:禁用"
|
|
|
},
|
|
|
"auditStatus": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"$ref": "#/definitions/int",
|
|
|
"description": " 审核状态 0:待审核 1:审核通过 2:拒绝"
|
|
|
},
|
|
|
"followers": {
|
...
|
...
|
@@ -1454,14 +2661,25 @@ |
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": " 我关注的人 (冗余)"
|
|
|
},
|
|
|
"departments": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": " 所属部门"
|
|
|
},
|
|
|
"accountFrom": {
|
|
|
"type": "string",
|
|
|
"description": " 账号来源 后台新增、扫码注册"
|
|
|
}
|
|
|
},
|
|
|
"title": "UserItem",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"companyId",
|
|
|
"departmentId",
|
|
|
"roleId",
|
|
|
"companyName",
|
|
|
"flag",
|
|
|
"name",
|
|
|
"avatar",
|
...
|
...
|
@@ -1470,7 +2688,9 @@ |
|
|
"enable",
|
|
|
"auditStatus",
|
|
|
"followers",
|
|
|
"following"
|
|
|
"following",
|
|
|
"departments",
|
|
|
"accountFrom"
|
|
|
]
|
|
|
},
|
|
|
"UserSearchRequest": {
|
...
|
...
|
@@ -1510,6 +2730,42 @@ |
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"WhichUserLikeArticle": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"articleId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 文章id"
|
|
|
},
|
|
|
"userId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 人员id"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 人员名称"
|
|
|
},
|
|
|
"avatar": {
|
|
|
"type": "string",
|
|
|
"description": " 人员头像"
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 点赞记录的时间"
|
|
|
}
|
|
|
},
|
|
|
"title": "WhichUserLikeArticle",
|
|
|
"required": [
|
|
|
"articleId",
|
|
|
"userId",
|
|
|
"name",
|
|
|
"avatar",
|
|
|
"createdAt"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"securityDefinitions": {
|
...
|
...
|
|