diff --git a/docs/docs.go b/docs/docs.go new file mode 100644 index 0000000..5f9bb81 --- /dev/null +++ b/docs/docs.go @@ -0,0 +1,1317 @@ +// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// This file was generated by swaggo/swag +package docs + +import ( + "bytes" + "encoding/json" + "strings" + "text/template" + + "github.com/swaggo/swag" +) + +var doc = `{ + "schemes": {{ marshal .Schemes }}, + "swagger": "2.0", + "info": { + "description": "{{escape .Description}}", + "title": "{{.Title}}", + "termsOfService": "https://www.XXX.com", + "contact": { + "name": "lizhe", + "url": "https://www.XXX.com", + "email": "XXXXX@qq.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + }, + "version": "{{.Version}}" + }, + "host": "{{.Host}}", + "basePath": "{{.BasePath}}", + "paths": { + "/oauth/checkphonenumberavailable": { + "post": { + "description": "检查电话号码是否可用", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "检查电话号码是否可用", + "operationId": "checkphonenumberavailableHandler", + "parameters": [ + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "601": { + "description": "{\"title\":\"Cell phone number is not correct\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/createinvitebyphone": { + "post": { + "description": "通过手机号邀请", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "通过手机号邀请", + "operationId": "createInviteByPhone", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "项目组长", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "invitecode", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"title\":\"生成邀请码失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/createinvitebyusercode": { + "post": { + "description": "通过用户code邀请", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "通过用户code邀请", + "operationId": "createInviteByUserCodeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "usercode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "invitecode", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"title\":\"生成邀请码失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/createinvitecode": { + "post": { + "description": "生成邀请码", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "生成邀请码", + "operationId": "createInviteCodeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "项目组长", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "invitecode", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"title\":\"生成邀请码失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/forgetpassword": { + "post": { + "description": "忘记密码", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "忘记密码", + "operationId": "forgetpasswordHandler", + "parameters": [ + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "6666", + "name": "code", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "111111", + "name": "password", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "601": { + "description": "{\"title\":\"Cell phone number is not correct\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "608": { + "description": "{\"title\":\"User not Found\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "609": { + "description": "{\"title\":\"Set Password Failed\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/getInviteListFromMe": { + "post": { + "description": "获取我发出的邀请列表", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "获取我发出的邀请列表", + "operationId": "getInviteListFromMeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "list", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "631": { + "description": "{\"title\":\"获取我发出的邀请列表失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/getInviteListToMe": { + "post": { + "description": "获取邀请我的列表", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "获取邀请我的列表", + "operationId": "getInviteListToMeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "list", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "630": { + "description": "{\"title\":\"获取邀请我的列表失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/login": { + "post": { + "description": "通过用户名及密码进行用户登陆", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "用户登陆", + "operationId": "loginHandler", + "parameters": [ + { + "description": "186XXXXXXXX", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "123456", + "name": "password", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"ExpiresAt\": \"6019-11-14 08:29:48.446901 +0000 UTC\",\"accesstoken\": \"1e0e848b-38d3-4336-845e-5b09d4065608\",\"message\": \"ok\",\"refreshtoken\": \"12aa1a3f-c0d5-4934-a73b-88af2c02fa5d\"}", + "schema": { + "type": "string" + } + }, + "606": { + "description": "{\"title\":\"Login Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/processInvite": { + "post": { + "description": "处理邀请项目", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "处理邀请项目", + "operationId": "processInviteHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "invitecode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "0:拒绝,1:接受", + "name": "accept", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "629": { + "description": "{\"title\":\"处理邀请项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/refreshtoken": { + "post": { + "description": "使用refreshtoken刷新accesstoken", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "刷新accesstoken", + "operationId": "refreshtokenHandler", + "parameters": [ + { + "description": "12aa1a3f-c0d5-4934-a73b-88af2c02fa5d", + "name": "refresh_token", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"ExpiresAt\": \"6019-11-14 08:29:48.446901 +0000 UTC\",\"accesstoken\": \"1e0e848b-38d3-4336-845e-5b09d4065608\",\"message\": \"ok\",\"refreshtoken\": \"12aa1a3f-c0d5-4934-a73b-88af2c02fa5d\"}", + "schema": { + "type": "string" + } + }, + "606": { + "description": "{\"title\":\"Login Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "610": { + "description": "{\"title\":\"Refresh token is not correct\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/register": { + "post": { + "description": "通过用户名、昵称、角色及密码进行用户注册", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "用户注册", + "operationId": "registerHandler", + "parameters": [ + { + "description": "李喆", + "name": "name", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "123456", + "name": "password", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "XXX证券公司", + "name": "cpmpany", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "高级经理", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "abc@a.com", + "name": "email", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "6666", + "name": "code", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "h7jgyg6fsHe5", + "name": "invitationcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "605": { + "description": "{\"title\":\"Create User Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/sendverificationcode": { + "post": { + "description": "根据手机号发送验证码短信", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "发送短信验证码", + "operationId": "sendverificationcodeHandler", + "parameters": [ + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "607": { + "description": "{\"title\":\"Send Phone Number ValidateMessage Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createDDItem": { + "post": { + "description": "创建条目", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "创建条目", + "operationId": "createDDItemHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "21-1-2", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "21-1-2", + "name": "filePointer", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{projects}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "626": { + "description": "{\"创建条目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createDDModel": { + "post": { + "description": "创建一个项目的尽调模块", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "创建一个项目的尽调模块", + "operationId": "createDDModelHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "历史沿革", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{200}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"创建尽调模块失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createDDModelByTemplate": { + "post": { + "description": "根据模板创建尽调模块", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "根据模板创建尽调模块", + "operationId": "createDDModelByTemplateHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "modeltemplatecode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{projects}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"创建尽调模块失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createprojectbytemplate": { + "post": { + "description": "通过坐标查找附近的地点", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "根据模板编号创建项目", + "operationId": "createPrjByTemplateHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "XX公司IPO项目", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "项目组长(可以填四项:发行人员工、发行人负责人、项目组成员、项目组长)", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "templatecode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{project}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "621": { + "description": "{\"创建项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getalltemplates": { + "post": { + "description": "获取所有模板", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获取所有模板", + "operationId": "getAllTemplateHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "{projects}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "622": { + "description": "{\"获取模板失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getfullproject": { + "post": { + "description": "获得一个项目的全部内容", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获得一个项目的全部内容", + "operationId": "getFullProjectHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{projects}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "624": { + "description": "{\"获取项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getmyprojects": { + "post": { + "description": "获取我的所有项目", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获取我的所有项目", + "operationId": "getMyProjectsHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "{projects}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "624": { + "description": "{\"获取项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getprojectfilepermission": { + "post": { + "description": "获取项目文件的读写权限", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获取项目文件的读写权限", + "operationId": "getProjectFilePermission", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{token}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "623": { + "description": "{\"获取权限失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + } + } +}` + +type swaggerInfo struct { + Version string + Host string + BasePath string + Schemes []string + Title string + Description string +} + +// SwaggerInfo holds exported Swagger Info so clients can modify it +var SwaggerInfo = swaggerInfo{ + Version: "1.0", + Host: "apidoc.XX.com", + BasePath: "/v1", + Schemes: []string{"https"}, + Title: "IBtools Server API document", + Description: "描述了server与client的交互接口", +} + +type s struct{} + +func (s *s) ReadDoc() string { + sInfo := SwaggerInfo + sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1) + + t, err := template.New("swagger_info").Funcs(template.FuncMap{ + "marshal": func(v interface{}) string { + a, _ := json.Marshal(v) + return string(a) + }, + "escape": func(v interface{}) string { + // escape tabs + str := strings.Replace(v.(string), "\t", "\\t", -1) + // replace " with \", and if that results in \\", replace that with \\\" + str = strings.Replace(str, "\"", "\\\"", -1) + return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1) + }, + }).Parse(doc) + if err != nil { + return doc + } + + var tpl bytes.Buffer + if err := t.Execute(&tpl, sInfo); err != nil { + return doc + } + + return tpl.String() +} + +func init() { + swag.Register("swagger", &s{}) +} diff --git a/docs/swagger.json b/docs/swagger.json new file mode 100644 index 0000000..82a82d9 --- /dev/null +++ b/docs/swagger.json @@ -0,0 +1,1252 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "description": "描述了server与client的交互接口", + "title": "IBtools Server API document", + "termsOfService": "https://www.XXX.com", + "contact": { + "name": "lizhe", + "url": "https://www.XXX.com", + "email": "XXXXX@qq.com" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + }, + "version": "1.0" + }, + "host": "apidoc.XX.com", + "basePath": "/v1", + "paths": { + "/oauth/checkphonenumberavailable": { + "post": { + "description": "检查电话号码是否可用", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "检查电话号码是否可用", + "operationId": "checkphonenumberavailableHandler", + "parameters": [ + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "601": { + "description": "{\"title\":\"Cell phone number is not correct\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/createinvitebyphone": { + "post": { + "description": "通过手机号邀请", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "通过手机号邀请", + "operationId": "createInviteByPhone", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "项目组长", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "invitecode", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"title\":\"生成邀请码失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/createinvitebyusercode": { + "post": { + "description": "通过用户code邀请", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "通过用户code邀请", + "operationId": "createInviteByUserCodeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "usercode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "invitecode", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"title\":\"生成邀请码失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/createinvitecode": { + "post": { + "description": "生成邀请码", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "生成邀请码", + "operationId": "createInviteCodeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "项目组长", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "invitecode", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"title\":\"生成邀请码失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/forgetpassword": { + "post": { + "description": "忘记密码", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "忘记密码", + "operationId": "forgetpasswordHandler", + "parameters": [ + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "6666", + "name": "code", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "111111", + "name": "password", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "601": { + "description": "{\"title\":\"Cell phone number is not correct\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "608": { + "description": "{\"title\":\"User not Found\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "609": { + "description": "{\"title\":\"Set Password Failed\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/getInviteListFromMe": { + "post": { + "description": "获取我发出的邀请列表", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "获取我发出的邀请列表", + "operationId": "getInviteListFromMeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "list", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "631": { + "description": "{\"title\":\"获取我发出的邀请列表失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/getInviteListToMe": { + "post": { + "description": "获取邀请我的列表", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "获取邀请我的列表", + "operationId": "getInviteListToMeHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "list", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "630": { + "description": "{\"title\":\"获取邀请我的列表失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/login": { + "post": { + "description": "通过用户名及密码进行用户登陆", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "用户登陆", + "operationId": "loginHandler", + "parameters": [ + { + "description": "186XXXXXXXX", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "123456", + "name": "password", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"ExpiresAt\": \"6019-11-14 08:29:48.446901 +0000 UTC\",\"accesstoken\": \"1e0e848b-38d3-4336-845e-5b09d4065608\",\"message\": \"ok\",\"refreshtoken\": \"12aa1a3f-c0d5-4934-a73b-88af2c02fa5d\"}", + "schema": { + "type": "string" + } + }, + "606": { + "description": "{\"title\":\"Login Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/processInvite": { + "post": { + "description": "处理邀请项目", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "处理邀请项目", + "operationId": "processInviteHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "invitecode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "0:拒绝,1:接受", + "name": "accept", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"title\":\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "629": { + "description": "{\"title\":\"处理邀请项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/refreshtoken": { + "post": { + "description": "使用refreshtoken刷新accesstoken", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "刷新accesstoken", + "operationId": "refreshtokenHandler", + "parameters": [ + { + "description": "12aa1a3f-c0d5-4934-a73b-88af2c02fa5d", + "name": "refresh_token", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"ExpiresAt\": \"6019-11-14 08:29:48.446901 +0000 UTC\",\"accesstoken\": \"1e0e848b-38d3-4336-845e-5b09d4065608\",\"message\": \"ok\",\"refreshtoken\": \"12aa1a3f-c0d5-4934-a73b-88af2c02fa5d\"}", + "schema": { + "type": "string" + } + }, + "606": { + "description": "{\"title\":\"Login Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "610": { + "description": "{\"title\":\"Refresh token is not correct\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/register": { + "post": { + "description": "通过用户名、昵称、角色及密码进行用户注册", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "用户注册", + "operationId": "registerHandler", + "parameters": [ + { + "description": "李喆", + "name": "name", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "123456", + "name": "password", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "XXX证券公司", + "name": "cpmpany", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "高级经理", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "abc@a.com", + "name": "email", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "6666", + "name": "code", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "h7jgyg6fsHe5", + "name": "invitationcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "605": { + "description": "{\"title\":\"Create User Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/oauth/sendverificationcode": { + "post": { + "description": "根据手机号发送验证码短信", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "oauth" + ], + "summary": "发送短信验证码", + "operationId": "sendverificationcodeHandler", + "parameters": [ + { + "description": "5555555555", + "name": "phone", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{\"message\": \"ok\"}", + "schema": { + "type": "string" + } + }, + "607": { + "description": "{\"title\":\"Send Phone Number ValidateMessage Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createDDItem": { + "post": { + "description": "创建条目", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "创建条目", + "operationId": "createDDItemHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "21-1-2", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "21-1-2", + "name": "filePointer", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{projects}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "626": { + "description": "{\"创建条目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createDDModel": { + "post": { + "description": "创建一个项目的尽调模块", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "创建一个项目的尽调模块", + "operationId": "createDDModelHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "历史沿革", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{200}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"创建尽调模块失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createDDModelByTemplate": { + "post": { + "description": "根据模板创建尽调模块", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "根据模板创建尽调模块", + "operationId": "createDDModelByTemplateHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "modeltemplatecode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{projects}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "625": { + "description": "{\"创建尽调模块失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/createprojectbytemplate": { + "post": { + "description": "通过坐标查找附近的地点", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "根据模板编号创建项目", + "operationId": "createPrjByTemplateHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "XX公司IPO项目", + "name": "title", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "项目组长(可以填四项:发行人员工、发行人负责人、项目组成员、项目组长)", + "name": "role", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "templatecode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{project}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "614": { + "description": "{\"Param is Null\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "621": { + "description": "{\"创建项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getalltemplates": { + "post": { + "description": "获取所有模板", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获取所有模板", + "operationId": "getAllTemplateHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "{projects}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "622": { + "description": "{\"获取模板失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getfullproject": { + "post": { + "description": "获得一个项目的全部内容", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获得一个项目的全部内容", + "operationId": "getFullProjectHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{projects}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "624": { + "description": "{\"获取项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getmyprojects": { + "post": { + "description": "获取我的所有项目", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获取我的所有项目", + "operationId": "getMyProjectsHandler", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "{projects}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "624": { + "description": "{\"获取项目失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/project/getprojectfilepermission": { + "post": { + "description": "获取项目文件的读写权限", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "project" + ], + "summary": "获取项目文件的读写权限", + "operationId": "getProjectFilePermission", + "parameters": [ + { + "type": "string", + "description": "d29788b2-a482-4f1d-9434-a84a9cfbc01d", + "name": "at", + "in": "header", + "required": true + }, + { + "description": "3cb6f508-ece8-43ae-b025-bdefd9b807a9", + "name": "projectcode", + "in": "body", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "{token}}", + "schema": { + "type": "string" + } + }, + "612": { + "description": "{\"AccessToken is nul\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "613": { + "description": "{\"AccessToken Auth Failed\",\"message\": \"\"}", + "schema": { + "type": "string" + } + }, + "623": { + "description": "{\"获取权限失败\": \"\"}", + "schema": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/docs/swagger.yaml b/docs/swagger.yaml new file mode 100644 index 0000000..586d6b3 --- /dev/null +++ b/docs/swagger.yaml @@ -0,0 +1,839 @@ +basePath: /v1 +host: apidoc.XX.com +info: + contact: + email: XXXXX@qq.com + name: lizhe + url: https://www.XXX.com + description: 描述了server与client的交互接口 + license: + name: Apache 2.0 + url: http://www.apache.org/licenses/LICENSE-2.0.html + termsOfService: https://www.XXX.com + title: IBtools Server API document + version: "1.0" +paths: + /oauth/checkphonenumberavailable: + post: + consumes: + - multipart/form-data + description: 检查电话号码是否可用 + operationId: checkphonenumberavailableHandler + parameters: + - description: "5555555555" + in: body + name: phone + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{"message": "ok"}' + schema: + type: string + "601": + description: '{"title":"Cell phone number is not correct","message": ""}' + schema: + type: string + summary: 检查电话号码是否可用 + tags: + - oauth + /oauth/createinvitebyphone: + post: + consumes: + - multipart/form-data + description: 通过手机号邀请 + operationId: createInviteByPhone + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: projectcode + required: true + schema: + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: phone + required: true + schema: + type: string + - description: 项目组长 + in: body + name: role + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: invitecode + schema: + type: string + "614": + description: '{"title":"Param is Null","message": ""}' + schema: + type: string + "625": + description: '{"title":"生成邀请码失败": ""}' + schema: + type: string + summary: 通过手机号邀请 + tags: + - oauth + /oauth/createinvitebyusercode: + post: + consumes: + - multipart/form-data + description: 通过用户code邀请 + operationId: createInviteByUserCodeHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: projectcode + required: true + schema: + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: usercode + required: true + schema: + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: role + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: invitecode + schema: + type: string + "614": + description: '{"title":"Param is Null","message": ""}' + schema: + type: string + "625": + description: '{"title":"生成邀请码失败": ""}' + schema: + type: string + summary: 通过用户code邀请 + tags: + - oauth + /oauth/createinvitecode: + post: + consumes: + - multipart/form-data + description: 生成邀请码 + operationId: createInviteCodeHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: projectcode + required: true + schema: + type: string + - description: 项目组长 + in: body + name: role + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: invitecode + schema: + type: string + "614": + description: '{"title":"Param is Null","message": ""}' + schema: + type: string + "625": + description: '{"title":"生成邀请码失败": ""}' + schema: + type: string + summary: 生成邀请码 + tags: + - oauth + /oauth/forgetpassword: + post: + consumes: + - multipart/form-data + description: 忘记密码 + operationId: forgetpasswordHandler + parameters: + - description: "5555555555" + in: body + name: phone + required: true + schema: + type: string + - description: "6666" + in: body + name: code + required: true + schema: + type: string + - description: "111111" + in: body + name: password + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{"message": "ok"}' + schema: + type: string + "601": + description: '{"title":"Cell phone number is not correct","message": ""}' + schema: + type: string + "608": + description: '{"title":"User not Found","message": ""}' + schema: + type: string + "609": + description: '{"title":"Set Password Failed": ""}' + schema: + type: string + summary: 忘记密码 + tags: + - oauth + /oauth/getInviteListFromMe: + post: + consumes: + - multipart/form-data + description: 获取我发出的邀请列表 + operationId: getInviteListFromMeHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + produces: + - application/json + responses: + "200": + description: list + schema: + type: string + "614": + description: '{"title":"Param is Null","message": ""}' + schema: + type: string + "631": + description: '{"title":"获取我发出的邀请列表失败": ""}' + schema: + type: string + summary: 获取我发出的邀请列表 + tags: + - oauth + /oauth/getInviteListToMe: + post: + consumes: + - multipart/form-data + description: 获取邀请我的列表 + operationId: getInviteListToMeHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + produces: + - application/json + responses: + "200": + description: list + schema: + type: string + "614": + description: '{"title":"Param is Null","message": ""}' + schema: + type: string + "630": + description: '{"title":"获取邀请我的列表失败": ""}' + schema: + type: string + summary: 获取邀请我的列表 + tags: + - oauth + /oauth/login: + post: + consumes: + - multipart/form-data + description: 通过用户名及密码进行用户登陆 + operationId: loginHandler + parameters: + - description: 186XXXXXXXX + in: body + name: phone + required: true + schema: + type: string + - description: "123456" + in: body + name: password + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{"ExpiresAt": "6019-11-14 08:29:48.446901 +0000 UTC","accesstoken": + "1e0e848b-38d3-4336-845e-5b09d4065608","message": "ok","refreshtoken": + "12aa1a3f-c0d5-4934-a73b-88af2c02fa5d"}' + schema: + type: string + "606": + description: '{"title":"Login Failed","message": ""}' + schema: + type: string + summary: 用户登陆 + tags: + - oauth + /oauth/processInvite: + post: + consumes: + - multipart/form-data + description: 处理邀请项目 + operationId: processInviteHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: invitecode + required: true + schema: + type: string + - description: 0:拒绝,1:接受 + in: body + name: accept + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{"message": "ok"}' + schema: + type: string + "614": + description: '{"title":"Param is Null","message": ""}' + schema: + type: string + "629": + description: '{"title":"处理邀请项目失败": ""}' + schema: + type: string + summary: 处理邀请项目 + tags: + - oauth + /oauth/refreshtoken: + post: + consumes: + - multipart/form-data + description: 使用refreshtoken刷新accesstoken + operationId: refreshtokenHandler + parameters: + - description: 12aa1a3f-c0d5-4934-a73b-88af2c02fa5d + in: body + name: refresh_token + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{"ExpiresAt": "6019-11-14 08:29:48.446901 +0000 UTC","accesstoken": + "1e0e848b-38d3-4336-845e-5b09d4065608","message": "ok","refreshtoken": + "12aa1a3f-c0d5-4934-a73b-88af2c02fa5d"}' + schema: + type: string + "606": + description: '{"title":"Login Failed","message": ""}' + schema: + type: string + "610": + description: '{"title":"Refresh token is not correct": ""}' + schema: + type: string + summary: 刷新accesstoken + tags: + - oauth + /oauth/register: + post: + consumes: + - multipart/form-data + description: 通过用户名、昵称、角色及密码进行用户注册 + operationId: registerHandler + parameters: + - description: 李喆 + in: body + name: name + required: true + schema: + type: string + - description: "123456" + in: body + name: password + required: true + schema: + type: string + - description: "5555555555" + in: body + name: phone + required: true + schema: + type: string + - description: XXX证券公司 + in: body + name: cpmpany + required: true + schema: + type: string + - description: 高级经理 + in: body + name: title + required: true + schema: + type: string + - description: abc@a.com + in: body + name: email + required: true + schema: + type: string + - description: "6666" + in: body + name: code + required: true + schema: + type: string + - description: h7jgyg6fsHe5 + in: body + name: invitationcode + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{"message": "ok"}' + schema: + type: string + "605": + description: '{"title":"Create User Failed","message": ""}' + schema: + type: string + summary: 用户注册 + tags: + - oauth + /oauth/sendverificationcode: + post: + consumes: + - multipart/form-data + description: 根据手机号发送验证码短信 + operationId: sendverificationcodeHandler + parameters: + - description: "5555555555" + in: body + name: phone + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{"message": "ok"}' + schema: + type: string + "607": + description: '{"title":"Send Phone Number ValidateMessage Failed","message": + ""}' + schema: + type: string + summary: 发送短信验证码 + tags: + - oauth + /project/createDDItem: + post: + consumes: + - multipart/form-data + description: 创建条目 + operationId: createDDItemHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 21-1-2 + in: body + name: title + required: true + schema: + type: string + - description: 21-1-2 + in: body + name: filePointer + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{projects}}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "626": + description: '{"创建条目失败": ""}' + schema: + type: string + summary: 创建条目 + tags: + - project + /project/createDDModel: + post: + consumes: + - multipart/form-data + description: 创建一个项目的尽调模块 + operationId: createDDModelHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: projectcode + required: true + schema: + type: string + - description: 历史沿革 + in: body + name: title + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{200}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "625": + description: '{"创建尽调模块失败": ""}' + schema: + type: string + summary: 创建一个项目的尽调模块 + tags: + - project + /project/createDDModelByTemplate: + post: + consumes: + - multipart/form-data + description: 根据模板创建尽调模块 + operationId: createDDModelByTemplateHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: modeltemplatecode + required: true + schema: + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: projectcode + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{projects}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "625": + description: '{"创建尽调模块失败": ""}' + schema: + type: string + summary: 根据模板创建尽调模块 + tags: + - project + /project/createprojectbytemplate: + post: + consumes: + - multipart/form-data + description: 通过坐标查找附近的地点 + operationId: createPrjByTemplateHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: XX公司IPO项目 + in: body + name: title + required: true + schema: + type: string + - description: 项目组长(可以填四项:发行人员工、发行人负责人、项目组成员、项目组长) + in: body + name: role + required: true + schema: + type: string + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: body + name: templatecode + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{project}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "614": + description: '{"Param is Null","message": ""}' + schema: + type: string + "621": + description: '{"创建项目失败": ""}' + schema: + type: string + summary: 根据模板编号创建项目 + tags: + - project + /project/getalltemplates: + post: + consumes: + - multipart/form-data + description: 获取所有模板 + operationId: getAllTemplateHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + produces: + - application/json + responses: + "200": + description: '{projects}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "622": + description: '{"获取模板失败": ""}' + schema: + type: string + summary: 获取所有模板 + tags: + - project + /project/getfullproject: + post: + consumes: + - multipart/form-data + description: 获得一个项目的全部内容 + operationId: getFullProjectHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: projectcode + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{projects}}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "624": + description: '{"获取项目失败": ""}' + schema: + type: string + summary: 获得一个项目的全部内容 + tags: + - project + /project/getmyprojects: + post: + consumes: + - multipart/form-data + description: 获取我的所有项目 + operationId: getMyProjectsHandler + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + produces: + - application/json + responses: + "200": + description: '{projects}}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "624": + description: '{"获取项目失败": ""}' + schema: + type: string + summary: 获取我的所有项目 + tags: + - project + /project/getprojectfilepermission: + post: + consumes: + - multipart/form-data + description: 获取项目文件的读写权限 + operationId: getProjectFilePermission + parameters: + - description: d29788b2-a482-4f1d-9434-a84a9cfbc01d + in: header + name: at + required: true + type: string + - description: 3cb6f508-ece8-43ae-b025-bdefd9b807a9 + in: body + name: projectcode + required: true + schema: + type: string + produces: + - application/json + responses: + "200": + description: '{token}}' + schema: + type: string + "612": + description: '{"AccessToken is nul","message": ""}' + schema: + type: string + "613": + description: '{"AccessToken Auth Failed","message": ""}' + schema: + type: string + "623": + description: '{"获取权限失败": ""}' + schema: + type: string + summary: 获取项目文件的读写权限 + tags: + - project +schemes: +- https +swagger: "2.0" diff --git a/go.mod b/go.mod index 0374404..587eebb 100644 --- a/go.mod +++ b/go.mod @@ -20,6 +20,7 @@ require ( github.com/go-delve/delve v1.3.2 // indirect github.com/go-enry/go-enry/v2 v2.8.0 // indirect github.com/go-openapi/jsonreference v0.19.6 // indirect + github.com/go-openapi/spec v0.20.4 // indirect github.com/go-openapi/swag v0.19.15 // indirect github.com/go-redis/redis v6.15.8+incompatible github.com/google/uuid v1.3.0 @@ -35,6 +36,7 @@ require ( github.com/mdempsky/gocode v0.0.0-20200405233807-4acdcbdea79d // indirect github.com/patrickmn/go-cache v0.0.0-20180527043350-9f6ff22cfff8 github.com/phyber/negroni-gzip v0.0.0-20170323132914-8118ae63850f + github.com/ramya-rao-a/go-outline v0.0.0-20210608161538-9736a4bde949 // indirect github.com/rogpeppe/godef v1.1.2 // indirect github.com/satori/go.uuid v1.2.0 // indirect github.com/sirupsen/logrus v1.4.2 @@ -45,16 +47,16 @@ require ( github.com/stretchr/testify v1.7.0 github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14 github.com/swaggo/gin-swagger v1.3.2 - github.com/swaggo/swag v1.7.3 + github.com/swaggo/swag v1.7.6 github.com/ugorji/go v1.1.7 // indirect github.com/urfave/cli v1.22.2 github.com/urfave/negroni v0.0.0-20180105164225-ff85fb036d90 golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect - golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d - golang.org/x/sys v0.0.0-20211210111614-af8b64212486 // indirect + golang.org/x/net v0.0.0-20211216030914-fe4d6282115f + golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect golang.org/x/text v0.3.7 // indirect - golang.org/x/tools v0.1.5 // indirect + golang.org/x/tools v0.1.8 // indirect golang.org/x/tools/gopls v0.4.3 // indirect googlemaps.github.io/maps v0.0.0-20191014172202-ce2e58e026c5 gopkg.in/tylerb/graceful.v1 v1.2.15 diff --git a/go.sum b/go.sum index 2242d8f..00fd676 100644 --- a/go.sum +++ b/go.sum @@ -52,6 +52,7 @@ github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrU github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/abdullin/seq v0.0.0-20160510034733-d5467c17e7af/go.mod h1:5Jv4cbFiHJMsVxt52+i0Ha45fjshj6wxYr1r19tB9bw= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= +github.com/agiledragon/gomonkey/v2 v2.3.1/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -283,6 +284,8 @@ github.com/go-openapi/spec v0.19.4 h1:ixzUSnHTd6hCemgtAJgluaTSGYpLNpJY4mA2DIkdOA github.com/go-openapi/spec v0.19.4/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= github.com/go-openapi/spec v0.20.3 h1:uH9RQ6vdyPSs2pSy9fL8QPspDF2AMIMPtmK5coSSjtQ= github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= +github.com/go-openapi/spec v0.20.4 h1:O8hJrt0UMnhHcluhIdUgCLRWyM2x7QkBXRvOs7m+O1M= +github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= github.com/go-openapi/swag v0.17.0 h1:iqrgMg7Q7SvtbWLlltPrkMs0UBJI6oTSs79JFRUi880= github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= @@ -756,6 +759,11 @@ github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJ github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/ory/dockertest v3.3.4+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +github.com/otiai10/copy v1.7.0/go.mod h1:rmRl6QPdJj6EiUqXQ/4Nn2lLXoNQjFCQbbNrxgc/t3U= +github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= +github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= +github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= +github.com/otiai10/mint v1.3.3/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/oxtoacart/bpool v0.0.0-20150712133111-4e1c5567d7c2 h1:CXwSGu/LYmbjEab5aMCs5usQRVBGThelUKBNnoSOuso= github.com/oxtoacart/bpool v0.0.0-20150712133111-4e1c5567d7c2/go.mod h1:L3UMQOThbttwfYRNFOWLLVXMhk5Lkio4GGOtw5UrxS0= github.com/packethost/packngo v0.1.1-0.20180711074735-b9cb5096f54c h1:vwpFWvAO8DeIZfFeqASzZfsxuWPno9ncAebBEP0N3uE= @@ -814,6 +822,8 @@ github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8 h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= +github.com/ramya-rao-a/go-outline v0.0.0-20210608161538-9736a4bde949 h1:iaD+iVf9xGfajsJp+zYrg9Lrk6gMJ6/hZHO4cYq5D5o= +github.com/ramya-rao-a/go-outline v0.0.0-20210608161538-9736a4bde949/go.mod h1:9V3eNbj9Z53yO7cKB6cSX9f0O7rYdIiuGBhjA1YsQuw= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/renier/xmlrpc v0.0.0-20170708154548-ce4a1a486c03 h1:Wdi9nwnhFNAlseAOekn6B5G/+GMtks9UKbvRU/CMM/o= github.com/renier/xmlrpc v0.0.0-20170708154548-ce4a1a486c03/go.mod h1:gRAiPF5C5Nd0eyyRdqIu9qTiFSoZzpTq727b5B8fkkU= @@ -918,6 +928,8 @@ github.com/swaggo/swag v1.7.1 h1:gY9ZakXlNWg/i/v5bQBic7VMZ4teq4m89lpiao74p/s= github.com/swaggo/swag v1.7.1/go.mod h1:gAiHxNTb9cIpNmA/VEGUP+CyZMCP/EW7mdtc8Bny+p8= github.com/swaggo/swag v1.7.3 h1:ucB7irEdRrhjmW+Z1Ss4GjO68oPKQFjSgOR8BCAvcbU= github.com/swaggo/swag v1.7.3/go.mod h1:zD8h6h4SPv7t3l+4BKdRquqW1ASWjKZgT6Qv9z3kNqI= +github.com/swaggo/swag v1.7.6 h1:UbAqHyXkW2J+cDjs5S43MkuYR7a6stB7Am7SK8NBmRg= +github.com/swaggo/swag v1.7.6/go.mod h1:7vLqNYEtYoIsD14wXgy9oDS65MNiDANrPtbk9rnLuj0= github.com/tent/http-link-go v0.0.0-20130702225549-ac974c61c2f9/go.mod h1:RHkNRtSLfOK7qBTHaeSX1D6BNpI3qw7NTxsmNr4RvN8= github.com/tjfoc/gmsm v1.3.2 h1:7JVkAn5bvUJ7HtU08iW6UiD+UTmJTIToHCfeFzkcCxM= github.com/tjfoc/gmsm v1.3.2/go.mod h1:HaUcFuY0auTiaHB9MHFGCPx5IaLhTUd2atbCFBQXn9w= @@ -961,6 +973,7 @@ github.com/yuin/goldmark v1.1.30/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= @@ -1045,6 +1058,7 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1088,6 +1102,9 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d h1:LO7XpTYMwTqxjLcGWPijK3vRXg1aWdlNOVOHRq45d7c= golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211216030914-fe4d6282115f h1:hEYJvxw1lSnWIl8X9ofsYMklzaDs90JI2az5YMd4fPM= +golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/oauth2 v0.0.0-20170807180024-9a379c6b3e95/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421 h1:Wo7BWFiOk0QRFMLYMqJGFMd9CgUAcGx7V+qEg/h5IBI= @@ -1154,8 +1171,11 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2 h1:c8PlLMqBbOHoqtjteWm5/kbe6rNY2pbRfbIMVnepueo= golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486 h1:5hpz5aRr+W1erYCL5JRhSUBJRph7l9XkNveoExlrKYk= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1211,8 +1231,11 @@ golang.org/x/tools v0.0.0-20200708181441-6004c8539734/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed h1:+qzWo37K31KxduIYaBeMqJ8MUOyTayOQKpH9aDPLMSY= golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5 h1:ouewzE6p+/VEB31YYnTbEJdi8pFqKp4P4n85vwo3DHA= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.8 h1:P1HhGGuLW4aAclzjtmJdf0mJOjVUZUzOTqkAkWL+l6w= +golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools/gopls v0.2.1 h1:qXHEqJw4CqROYvoDXinY1ZOkyAFS+jcPOvLRK76dvwY= golang.org/x/tools/gopls v0.2.1/go.mod h1:r4JFjFfxpKo0rD4xMAAP1NAYwefX6vgQhjjVbNqDoFo= golang.org/x/tools/gopls v0.4.3 h1:irz7Q+XdHNECamFKbNWKvMV2Ak6zBbwdwbZndG4545I=