{ "swagger": "2.0", "info": { "description": "This is a gateway server. On the page, you can go to do testing for every API.", "title": "Project xingjia-management-gateway's APIs", "contact": {}, "license": {}, "version": "1.1" }, "paths": { "/api/v1/file": { "get": { "description": "获取文件", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "download" ], "summary": "获取文件", "parameters": [ { "type": "string", "description": "jwt token", "name": "token", "in": "header", "required": true }, { "type": "string", "description": " ", "name": "obj", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.UploadResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "上传文件", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "upload" ], "summary": "上传文件", "parameters": [ { "type": "string", "description": "jwt token", "name": "token", "in": "header", "required": true }, { "type": "file", "description": "file", "name": "file", "in": "formData" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.UploadResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/announcement": { "get": { "description": "公示公告列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公示公告" ], "summary": "公示公告列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改公示公告", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公示公告" ], "summary": "修改公示公告", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加公示公告", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公示公告" ], "summary": "添加公示公告", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除公示公告", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公示公告" ], "summary": "删除公示公告", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/announcement/publish": { "put": { "description": "发布或下架公示公告", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公示公告" ], "summary": "发布或下架公示公告", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/contact": { "get": { "description": "联系我们信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "联系我们" ], "summary": "联系我们信息", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.ContactInfoResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改联系我们", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "联系我们" ], "summary": "修改联系我们", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.ContactUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.ContactUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加联系我们", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "联系我们" ], "summary": "添加联系我们", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.ContactAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.ContactAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除联系我们", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "联系我们" ], "summary": "删除联系我们", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.ContactDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/desc": { "get": { "description": "集团简介信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "集团简介" ], "summary": "集团简介信息", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentInfoResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改集团简介", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "集团简介" ], "summary": "修改集团简介", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加集团简介", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "集团简介" ], "summary": "添加集团简介", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除集团简介", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "集团简介" ], "summary": "删除集团简介", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/desc/publish": { "put": { "description": "发布或下架集团简介", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "集团简介" ], "summary": "发布或下架集团简介", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/df": { "get": { "description": "党风廉洁列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "党风廉洁" ], "summary": "党风廉洁列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改党风廉洁", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "党风廉洁" ], "summary": "修改党风廉洁", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加党风廉洁", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "党风廉洁" ], "summary": "添加党风廉洁", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除党风廉洁", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "党风廉洁" ], "summary": "删除党风廉洁", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/df/publish": { "put": { "description": "发布或下架党风廉洁", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "党风廉洁" ], "summary": "发布或下架党风廉洁", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/hw": { "get": { "description": "会务动态列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "会务动态" ], "summary": "会务动态列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改会务动态", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "会务动态" ], "summary": "修改会务动态", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加会务动态", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "会务动态" ], "summary": "添加会务动态", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除会务动态", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "会务动态" ], "summary": "删除会务动态", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/hw/publish": { "put": { "description": "发布或下架会务动态", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "会务动态" ], "summary": "发布或下架会务动态", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/lx": { "get": { "description": "两学一做列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "两学一做" ], "summary": "两学一做列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改两学一做", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "两学一做" ], "summary": "修改两学一做", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加两学一做", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "两学一做" ], "summary": "添加两学一做", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除两学一做", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "两学一做" ], "summary": "删除两学一做", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/lx/publish": { "put": { "description": "发布或下架两学一做", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "两学一做" ], "summary": "发布或下架两学一做", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/news": { "get": { "description": "兴嘉要闻列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "兴嘉要闻" ], "summary": "兴嘉要闻列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改兴嘉要闻", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "兴嘉要闻" ], "summary": "修改兴嘉要闻", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加兴嘉要闻", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "兴嘉要闻" ], "summary": "添加兴嘉要闻", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除兴嘉要闻", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "兴嘉要闻" ], "summary": "删除兴嘉要闻", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/news/publish": { "put": { "description": "发布或下架兴嘉要闻", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "兴嘉要闻" ], "summary": "发布或下架兴嘉要闻", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/page_pic": { "get": { "description": "首页顶层图片列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "首页顶层图片" ], "summary": "首页顶层图片列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.PagePicListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改首页顶层图片", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "首页顶层图片" ], "summary": "修改首页顶层图片", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.PagePicUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.PagePicUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加首页顶层图片", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "首页顶层图片" ], "summary": "添加首页顶层图片", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.PagePicAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.PagePicAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除首页顶层图片", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "首页顶层图片" ], "summary": "删除首页顶层图片", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.PagePicDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/program": { "get": { "description": "项目展示列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目展示" ], "summary": "项目展示列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改项目展示", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目展示" ], "summary": "修改项目展示", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加项目展示", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目展示" ], "summary": "添加项目展示", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除项目", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目展示" ], "summary": "删除项目", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/program/publish": { "put": { "description": "发布或下架项目展示", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目展示" ], "summary": "发布或下架项目展示", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/vision": { "get": { "description": "发展愿景信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发展愿景" ], "summary": "发展愿景信息", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentInfoResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改发展愿景", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发展愿景" ], "summary": "修改发展愿景", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加发展愿景", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发展愿景" ], "summary": "添加发展愿景", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除发展愿景", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发展愿景" ], "summary": "删除发展愿景", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/jt/vision/publish": { "put": { "description": "发布或下架发展愿景", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发展愿景" ], "summary": "发布或下架发展愿景", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.JtContentPublishBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.JtContentPublishResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/management_user": { "get": { "description": "账号列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "账号" ], "summary": "账号列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.UserListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "put": { "description": "修改账号", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "账号" ], "summary": "修改账号", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.UserUpdateBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.UserUpdateResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "post": { "description": "添加账号", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "账号" ], "summary": "添加账号", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.UserAddBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.UserAddResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "删除账号", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "账号" ], "summary": "删除账号", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " 记录id", "name": "id", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.UserDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/management_user/password": { "put": { "description": "重置密码", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "账号" ], "summary": "重置密码", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "description": " ", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.UserResetPasswordBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.UserResetPasswordResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/operation_log": { "get": { "description": "操作日志列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "操作日志" ], "summary": "操作日志列表", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "integer", "description": " ", "name": "page", "in": "query" }, { "type": "integer", "description": " ", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.OperationLogListResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } }, "delete": { "description": "批量删除操作日志", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "操作日志" ], "summary": "批量删除操作日志", "parameters": [ { "type": "string", "description": " ", "name": "token", "in": "header", "required": true }, { "type": "string", "description": " 日志id,以英文分号分割", "name": "ids", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.OperationLogDelResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/token_refresh": { "put": { "description": "刷新token", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户" ], "summary": "刷新token", "parameters": [ { "type": "string", "description": "token", "name": "token", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.TokenResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } }, "/api/v1/user/login": { "post": { "description": "登录", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户" ], "summary": "登录", "parameters": [ { "description": "登录信息", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.LoginBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1.LoginResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } } }, "definitions": { "apis.ContactInfoReply": { "type": "object", "properties": { "addr": { "type": "string" }, "email": { "type": "string" }, "id": { "type": "integer" }, "phone": { "type": "string" } } }, "apis.JtContentItem": { "type": "object", "properties": { "content": { "type": "string" }, "created_at": { "type": "integer" }, "first_pics": { "type": "array", "items": { "type": "string" } }, "id": { "type": "integer" }, "publish_status": { "type": "integer" }, "title": { "type": "string" } } }, "apis.JtContentListReply": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/apis.JtContentItem" } }, "page": { "type": "integer" }, "total": { "type": "integer" } } }, "apis.OperationLogItem": { "type": "object", "properties": { "id": { "type": "integer" }, "module": { "type": "string" }, "operation": { "type": "string" }, "operation_time": { "type": "integer" }, "origin_content": { "type": "string" }, "target_content": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } } }, "apis.OperationLogListReply": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/apis.OperationLogItem" } }, "page": { "type": "integer" }, "total": { "type": "integer" } } }, "apis.PagePicItem": { "type": "object", "properties": { "created_at": { "type": "integer" }, "id": { "type": "integer" }, "pic": { "type": "string" } } }, "apis.PagePicListReply": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/apis.PagePicItem" } }, "page": { "type": "integer" }, "total": { "type": "integer" } } }, "apis.UserItem": { "type": "object", "properties": { "effective_end": { "type": "integer" }, "effective_start": { "type": "integer" }, "real_name": { "type": "string" }, "status": { "description": "1有效 2 过期", "type": "integer" }, "uid": { "type": "integer" }, "user": { "type": "string" }, "user_type": { "type": "integer" } } }, "apis.UserListReply": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/apis.UserItem" } }, "page": { "type": "integer" }, "total": { "type": "integer" } } }, "base.HTTPError": { "type": "object", "properties": { "code": { "type": "integer", "format": "int", "example": 500 }, "message": { "type": "string", "example": "status bad request" } } }, "v1.ContactAddBody": { "type": "object", "properties": { "addr": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" } } }, "v1.ContactAddResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.ContactDelResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.ContactInfoResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "object", "$ref": "#/definitions/apis.ContactInfoReply" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.ContactUpdateBody": { "type": "object", "properties": { "addr": { "type": "string" }, "email": { "type": "string" }, "id": { "type": "integer" }, "phone": { "type": "string" } } }, "v1.ContactUpdateResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.JtContentAddBody": { "type": "object", "properties": { "content": { "type": "string" }, "first_pics": { "description": "标题图片", "type": "array", "items": { "type": "string" } }, "publish_status": { "description": "1 发布 2 暂不发布", "type": "integer" }, "title": { "type": "string" } } }, "v1.JtContentAddResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.JtContentDelResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.JtContentInfoData": { "type": "object", "properties": { "content": { "type": "string" }, "created_at": { "type": "integer" }, "first_pics": { "type": "array", "items": { "type": "string" } }, "id": { "type": "integer" }, "publish_status": { "description": "1 发布 2 暂不发布", "type": "integer" }, "title": { "type": "string" } } }, "v1.JtContentInfoResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "object", "$ref": "#/definitions/v1.JtContentInfoData" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.JtContentListResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "object", "$ref": "#/definitions/apis.JtContentListReply" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.JtContentPublishBody": { "type": "object", "properties": { "id": { "type": "integer" }, "publish_status": { "description": "1 发布 2 下架", "type": "integer" } } }, "v1.JtContentPublishResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.JtContentUpdateBody": { "type": "object", "properties": { "content": { "type": "string" }, "first_pics": { "type": "array", "items": { "type": "string" } }, "id": { "type": "integer" }, "publish_status": { "description": "1 发布 2 暂不发布", "type": "integer" }, "title": { "type": "string" } } }, "v1.JtContentUpdateResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.LoginBody": { "type": "object", "properties": { "password": { "type": "string" }, "user": { "type": "string" } } }, "v1.LoginData": { "type": "object", "properties": { "token": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" }, "user_type": { "type": "integer" } } }, "v1.LoginResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "object", "$ref": "#/definitions/v1.LoginData" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.OperationLogDelResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.OperationLogListResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "object", "$ref": "#/definitions/apis.OperationLogListReply" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.PagePicAddBody": { "type": "object", "properties": { "pic": { "type": "string" } } }, "v1.PagePicAddResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.PagePicDelResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.PagePicListResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "object", "$ref": "#/definitions/apis.PagePicListReply" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.PagePicUpdateBody": { "type": "object", "properties": { "id": { "type": "integer" }, "pic": { "type": "string" } } }, "v1.PagePicUpdateResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.TokenResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "string" }, "message": { "description": "消息", "type": "string", "default": "success" }, "refresh_token": { "type": "string" } } }, "v1.UploadResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "string" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.UserAddBody": { "type": "object", "properties": { "effective_end": { "type": "integer" }, "effective_start": { "type": "integer" }, "password": { "type": "string" }, "real_name": { "type": "string" }, "user": { "type": "string" }, "user_type": { "type": "integer" } } }, "v1.UserAddResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.UserDelResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.UserListResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "data": { "type": "object", "$ref": "#/definitions/apis.UserListReply" }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.UserResetPasswordBody": { "type": "object", "properties": { "id": { "type": "integer" }, "password": { "type": "string" } } }, "v1.UserResetPasswordResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } }, "v1.UserUpdateBody": { "type": "object", "properties": { "effective_end": { "type": "integer" }, "effective_start": { "type": "integer" }, "id": { "type": "integer" }, "password": { "type": "string" }, "real_name": { "type": "string" }, "user": { "type": "string" }, "user_type": { "type": "integer" } } }, "v1.UserUpdateResponse": { "type": "object", "properties": { "code": { "description": "返回码", "type": "integer", "format": "int", "default": 0 }, "message": { "description": "消息", "type": "string", "default": "success" } } } } }