mirror of https://gitee.com/answerdev/answer.git
chore(gomod): update go mod and swagger doc
This commit is contained in:
parent
b0a04bbf11
commit
fb3b6a862f
91
docs/docs.go
91
docs/docs.go
|
@ -3003,7 +3003,7 @@ const docTemplate = `{
|
||||||
"ApiKeyAuth": []
|
"ApiKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "UserAnswerList",
|
"description": "list personal answers",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
@ -3011,9 +3011,9 @@ const docTemplate = `{
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"api-answer"
|
"Personal"
|
||||||
],
|
],
|
||||||
"summary": "UserAnswerList",
|
"summary": "list personal answers",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -3045,8 +3045,8 @@ const docTemplate = `{
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "20",
|
"default": "20",
|
||||||
"description": "pagesize",
|
"description": "page_size",
|
||||||
"name": "pagesize",
|
"name": "page_size",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
|
@ -3068,7 +3068,7 @@ const docTemplate = `{
|
||||||
"ApiKeyAuth": []
|
"ApiKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "UserCollectionList",
|
"description": "list personal collections",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
@ -3078,7 +3078,7 @@ const docTemplate = `{
|
||||||
"tags": [
|
"tags": [
|
||||||
"Collection"
|
"Collection"
|
||||||
],
|
],
|
||||||
"summary": "UserCollectionList",
|
"summary": "list personal collections",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -3091,8 +3091,8 @@ const docTemplate = `{
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "20",
|
"default": "20",
|
||||||
"description": "pagesize",
|
"description": "page_size",
|
||||||
"name": "pagesize",
|
"name": "page_size",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
|
@ -5289,12 +5289,12 @@ const docTemplate = `{
|
||||||
"summary": "UserModifyPassWord",
|
"summary": "UserModifyPassWord",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "UserModifyPassWordRequest",
|
"description": "UserModifyPasswordReq",
|
||||||
"name": "data",
|
"name": "data",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/schema.UserModifyPassWordRequest"
|
"$ref": "#/definitions/schema.UserModifyPasswordReq"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -5810,7 +5810,7 @@ const docTemplate = `{
|
||||||
"ApiKeyAuth": []
|
"ApiKeyAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "UserList",
|
"description": "list personal questions",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
@ -5818,9 +5818,9 @@ const docTemplate = `{
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"Question"
|
"Personal"
|
||||||
],
|
],
|
||||||
"summary": "UserList",
|
"summary": "list personal questions",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -5852,8 +5852,8 @@ const docTemplate = `{
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "20",
|
"default": "20",
|
||||||
"description": "pagesize",
|
"description": "page_size",
|
||||||
"name": "pagesize",
|
"name": "page_size",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
|
@ -6385,19 +6385,11 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schema.ConfigFieldUIOptionAction": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"url": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"schema.ConfigFieldUIOptions": {
|
"schema.ConfigFieldUIOptions": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"action": {
|
"action": {
|
||||||
"$ref": "#/definitions/schema.ConfigFieldUIOptionAction"
|
"$ref": "#/definitions/schema.UIOptionAction"
|
||||||
},
|
},
|
||||||
"input_type": {
|
"input_type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -7484,6 +7476,17 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.LoadingAction": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"state": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.NotificationClearIDRequest": {
|
"schema.NotificationClearIDRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -7501,6 +7504,17 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.OnCompleteAction": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"refresh_form_config": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"toast_return_message": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.OperationQuestionReq": {
|
"schema.OperationQuestionReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -8489,6 +8503,23 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.UIOptionAction": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"loading": {
|
||||||
|
"$ref": "#/definitions/schema.LoadingAction"
|
||||||
|
},
|
||||||
|
"method": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"on_complete": {
|
||||||
|
"$ref": "#/definitions/schema.OnCompleteAction"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.UnreviewedRevisionInfoInfo": {
|
"schema.UnreviewedRevisionInfoInfo": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -8545,9 +8576,6 @@ const docTemplate = `{
|
||||||
},
|
},
|
||||||
"schema.UpdateInfoRequest": {
|
"schema.UpdateInfoRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"display_name"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"avatar": {
|
"avatar": {
|
||||||
"description": "avatar",
|
"description": "avatar",
|
||||||
|
@ -8843,6 +8871,11 @@ const docTemplate = `{
|
||||||
"e_mail": {
|
"e_mail": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 500
|
"maxLength": 500
|
||||||
|
},
|
||||||
|
"pass": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 32,
|
||||||
|
"minLength": 8
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -8886,7 +8919,7 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schema.UserModifyPassWordRequest": {
|
"schema.UserModifyPasswordReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"pass"
|
"pass"
|
||||||
|
|
|
@ -650,6 +650,77 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/answer/admin/api/setting/privileges": {
|
||||||
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "GetPrivilegesConfig get privileges config",
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"admin"
|
||||||
|
],
|
||||||
|
"summary": "GetPrivilegesConfig get privileges config",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/handler.RespBody"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"$ref": "#/definitions/schema.GetPrivilegesConfigResp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"put": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "update privileges config",
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"admin"
|
||||||
|
],
|
||||||
|
"summary": "update privileges config",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"description": "config",
|
||||||
|
"name": "data",
|
||||||
|
"in": "body",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/schema.UpdatePrivilegesConfigReq"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/handler.RespBody"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/answer/admin/api/setting/smtp": {
|
"/answer/admin/api/setting/smtp": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"security": [
|
||||||
|
@ -1289,6 +1360,77 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/answer/admin/api/siteinfo/users": {
|
||||||
|
"get": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "get site user config",
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"admin"
|
||||||
|
],
|
||||||
|
"summary": "get site user config",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/handler.RespBody"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"$ref": "#/definitions/schema.SiteUsersResp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"put": {
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"ApiKeyAuth": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "update site info config about users",
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"admin"
|
||||||
|
],
|
||||||
|
"summary": "update site info config about users",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"description": "users info",
|
||||||
|
"name": "data",
|
||||||
|
"in": "body",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/schema.SiteUsersReq"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/handler.RespBody"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"/answer/admin/api/siteinfo/write": {
|
"/answer/admin/api/siteinfo/write": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"security": [
|
||||||
|
@ -5135,12 +5277,12 @@
|
||||||
"summary": "UserModifyPassWord",
|
"summary": "UserModifyPassWord",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"description": "UserModifyPassWordRequest",
|
"description": "UserModifyPasswordReq",
|
||||||
"name": "data",
|
"name": "data",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/schema.UserModifyPassWordRequest"
|
"$ref": "#/definitions/schema.UserModifyPasswordReq"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -5736,6 +5878,20 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
|
"constant.Privilege": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"handler.RespBody": {
|
"handler.RespBody": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -6220,6 +6376,9 @@
|
||||||
"schema.ConfigFieldUIOptions": {
|
"schema.ConfigFieldUIOptions": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"action": {
|
||||||
|
"$ref": "#/definitions/schema.UIOptionAction"
|
||||||
|
},
|
||||||
"input_type": {
|
"input_type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
@ -6231,6 +6390,12 @@
|
||||||
},
|
},
|
||||||
"rows": {
|
"rows": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"variant": {
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -6637,6 +6802,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.GetPrivilegesConfigResp": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"options": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/schema.PrivilegeOption"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"selected_level": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.GetRankPersonalWithPageResp": {
|
"schema.GetRankPersonalWithPageResp": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -7285,6 +7464,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.LoadingAction": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"state": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.NotificationClearIDRequest": {
|
"schema.NotificationClearIDRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -7302,6 +7492,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.OnCompleteAction": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"refresh_form_config": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"toast_return_message": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.OperationQuestionReq": {
|
"schema.OperationQuestionReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -7339,6 +7540,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.PrivilegeOption": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"level": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"level_desc": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"privileges": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/constant.Privilege"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.QuestionAdd": {
|
"schema.QuestionAdd": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -7406,6 +7624,10 @@
|
||||||
"schema.QuestionPageReq": {
|
"schema.QuestionPageReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"inDays": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
"orderCond": {
|
"orderCond": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
@ -7788,6 +8010,10 @@
|
||||||
"custom_header": {
|
"custom_header": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 65536
|
"maxLength": 65536
|
||||||
|
},
|
||||||
|
"custom_sidebar": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 65536
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -7809,6 +8035,10 @@
|
||||||
"custom_header": {
|
"custom_header": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 65536
|
"maxLength": 65536
|
||||||
|
},
|
||||||
|
"custom_sidebar": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 65536
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -7896,6 +8126,9 @@
|
||||||
"site_seo": {
|
"site_seo": {
|
||||||
"$ref": "#/definitions/schema.SiteSeoReq"
|
"$ref": "#/definitions/schema.SiteSeoReq"
|
||||||
},
|
},
|
||||||
|
"site_users": {
|
||||||
|
"$ref": "#/definitions/schema.SiteUsersResp"
|
||||||
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"$ref": "#/definitions/schema.SiteThemeResp"
|
"$ref": "#/definitions/schema.SiteThemeResp"
|
||||||
},
|
},
|
||||||
|
@ -7907,18 +8140,10 @@
|
||||||
"schema.SiteInterfaceReq": {
|
"schema.SiteInterfaceReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"default_avatar",
|
|
||||||
"language",
|
"language",
|
||||||
"time_zone"
|
"time_zone"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"default_avatar": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"system",
|
|
||||||
"gravatar"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"language": {
|
"language": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 128
|
"maxLength": 128
|
||||||
|
@ -7932,18 +8157,10 @@
|
||||||
"schema.SiteInterfaceResp": {
|
"schema.SiteInterfaceResp": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"default_avatar",
|
|
||||||
"language",
|
"language",
|
||||||
"time_zone"
|
"time_zone"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"default_avatar": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"system",
|
|
||||||
"gravatar"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"language": {
|
"language": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 128
|
"maxLength": 128
|
||||||
|
@ -7991,6 +8208,15 @@
|
||||||
"schema.SiteLoginReq": {
|
"schema.SiteLoginReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"allow_email_domains": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allow_email_registrations": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"allow_new_registrations": {
|
"allow_new_registrations": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
@ -8002,6 +8228,15 @@
|
||||||
"schema.SiteLoginResp": {
|
"schema.SiteLoginResp": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"allow_email_domains": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"allow_email_registrations": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"allow_new_registrations": {
|
"allow_new_registrations": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
@ -8078,6 +8313,72 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.SiteUsersReq": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"default_avatar"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"allow_update_avatar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_bio": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_display_name": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_location": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_username": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_website": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"default_avatar": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"system",
|
||||||
|
"gravatar"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"schema.SiteUsersResp": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"default_avatar"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"allow_update_avatar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_bio": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_display_name": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_location": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_username": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"allow_update_website": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"default_avatar": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"system",
|
||||||
|
"gravatar"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.SiteWriteReq": {
|
"schema.SiteWriteReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -8190,6 +8491,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.UIOptionAction": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"loading": {
|
||||||
|
"$ref": "#/definitions/schema.LoadingAction"
|
||||||
|
},
|
||||||
|
"method": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"on_complete": {
|
||||||
|
"$ref": "#/definitions/schema.OnCompleteAction"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.UnreviewedRevisionInfoInfo": {
|
"schema.UnreviewedRevisionInfoInfo": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -8246,9 +8564,6 @@
|
||||||
},
|
},
|
||||||
"schema.UpdateInfoRequest": {
|
"schema.UpdateInfoRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"display_name"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"avatar": {
|
"avatar": {
|
||||||
"description": "avatar",
|
"description": "avatar",
|
||||||
|
@ -8312,6 +8627,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schema.UpdatePrivilegesConfigReq": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"level"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"level": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 3,
|
||||||
|
"minimum": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"schema.UpdateSMTPConfigReq": {
|
"schema.UpdateSMTPConfigReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -8531,6 +8859,11 @@
|
||||||
"e_mail": {
|
"e_mail": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 500
|
"maxLength": 500
|
||||||
|
},
|
||||||
|
"pass": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 32,
|
||||||
|
"minLength": 8
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -8574,7 +8907,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schema.UserModifyPassWordRequest": {
|
"schema.UserModifyPasswordReq": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"pass"
|
"pass"
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
definitions:
|
definitions:
|
||||||
|
constant.Privilege:
|
||||||
|
properties:
|
||||||
|
key:
|
||||||
|
type: string
|
||||||
|
label:
|
||||||
|
type: string
|
||||||
|
value:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
handler.RespBody:
|
handler.RespBody:
|
||||||
properties:
|
properties:
|
||||||
code:
|
code:
|
||||||
|
@ -334,6 +343,8 @@ definitions:
|
||||||
type: object
|
type: object
|
||||||
schema.ConfigFieldUIOptions:
|
schema.ConfigFieldUIOptions:
|
||||||
properties:
|
properties:
|
||||||
|
action:
|
||||||
|
$ref: '#/definitions/schema.UIOptionAction'
|
||||||
input_type:
|
input_type:
|
||||||
type: string
|
type: string
|
||||||
label:
|
label:
|
||||||
|
@ -342,6 +353,10 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
rows:
|
rows:
|
||||||
type: string
|
type: string
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
variant:
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
schema.ConnectorInfoResp:
|
schema.ConnectorInfoResp:
|
||||||
properties:
|
properties:
|
||||||
|
@ -631,6 +646,15 @@ definitions:
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
schema.GetPrivilegesConfigResp:
|
||||||
|
properties:
|
||||||
|
options:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/schema.PrivilegeOption'
|
||||||
|
type: array
|
||||||
|
selected_level:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
schema.GetRankPersonalWithPageResp:
|
schema.GetRankPersonalWithPageResp:
|
||||||
properties:
|
properties:
|
||||||
answer_id:
|
answer_id:
|
||||||
|
@ -1101,6 +1125,13 @@ definitions:
|
||||||
description: vote type
|
description: vote type
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
schema.LoadingAction:
|
||||||
|
properties:
|
||||||
|
state:
|
||||||
|
type: string
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
schema.NotificationClearIDRequest:
|
schema.NotificationClearIDRequest:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -1112,6 +1143,13 @@ definitions:
|
||||||
description: inbox achievement
|
description: inbox achievement
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
schema.OnCompleteAction:
|
||||||
|
properties:
|
||||||
|
refresh_form_config:
|
||||||
|
type: boolean
|
||||||
|
toast_return_message:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
schema.OperationQuestionReq:
|
schema.OperationQuestionReq:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -1136,6 +1174,17 @@ definitions:
|
||||||
content:
|
content:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
schema.PrivilegeOption:
|
||||||
|
properties:
|
||||||
|
level:
|
||||||
|
type: integer
|
||||||
|
level_desc:
|
||||||
|
type: string
|
||||||
|
privileges:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/constant.Privilege'
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
schema.QuestionAdd:
|
schema.QuestionAdd:
|
||||||
properties:
|
properties:
|
||||||
content:
|
content:
|
||||||
|
@ -1187,6 +1236,9 @@ definitions:
|
||||||
type: object
|
type: object
|
||||||
schema.QuestionPageReq:
|
schema.QuestionPageReq:
|
||||||
properties:
|
properties:
|
||||||
|
inDays:
|
||||||
|
minimum: 1
|
||||||
|
type: integer
|
||||||
orderCond:
|
orderCond:
|
||||||
enum:
|
enum:
|
||||||
- newest
|
- newest
|
||||||
|
@ -1454,6 +1506,9 @@ definitions:
|
||||||
custom_header:
|
custom_header:
|
||||||
maxLength: 65536
|
maxLength: 65536
|
||||||
type: string
|
type: string
|
||||||
|
custom_sidebar:
|
||||||
|
maxLength: 65536
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
schema.SiteCustomCssHTMLResp:
|
schema.SiteCustomCssHTMLResp:
|
||||||
properties:
|
properties:
|
||||||
|
@ -1469,6 +1524,9 @@ definitions:
|
||||||
custom_header:
|
custom_header:
|
||||||
maxLength: 65536
|
maxLength: 65536
|
||||||
type: string
|
type: string
|
||||||
|
custom_sidebar:
|
||||||
|
maxLength: 65536
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
schema.SiteGeneralReq:
|
schema.SiteGeneralReq:
|
||||||
properties:
|
properties:
|
||||||
|
@ -1530,6 +1588,8 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
site_seo:
|
site_seo:
|
||||||
$ref: '#/definitions/schema.SiteSeoReq'
|
$ref: '#/definitions/schema.SiteSeoReq'
|
||||||
|
site_users:
|
||||||
|
$ref: '#/definitions/schema.SiteUsersResp'
|
||||||
theme:
|
theme:
|
||||||
$ref: '#/definitions/schema.SiteThemeResp'
|
$ref: '#/definitions/schema.SiteThemeResp'
|
||||||
version:
|
version:
|
||||||
|
@ -1537,11 +1597,6 @@ definitions:
|
||||||
type: object
|
type: object
|
||||||
schema.SiteInterfaceReq:
|
schema.SiteInterfaceReq:
|
||||||
properties:
|
properties:
|
||||||
default_avatar:
|
|
||||||
enum:
|
|
||||||
- system
|
|
||||||
- gravatar
|
|
||||||
type: string
|
|
||||||
language:
|
language:
|
||||||
maxLength: 128
|
maxLength: 128
|
||||||
type: string
|
type: string
|
||||||
|
@ -1549,17 +1604,11 @@ definitions:
|
||||||
maxLength: 128
|
maxLength: 128
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- default_avatar
|
|
||||||
- language
|
- language
|
||||||
- time_zone
|
- time_zone
|
||||||
type: object
|
type: object
|
||||||
schema.SiteInterfaceResp:
|
schema.SiteInterfaceResp:
|
||||||
properties:
|
properties:
|
||||||
default_avatar:
|
|
||||||
enum:
|
|
||||||
- system
|
|
||||||
- gravatar
|
|
||||||
type: string
|
|
||||||
language:
|
language:
|
||||||
maxLength: 128
|
maxLength: 128
|
||||||
type: string
|
type: string
|
||||||
|
@ -1567,7 +1616,6 @@ definitions:
|
||||||
maxLength: 128
|
maxLength: 128
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- default_avatar
|
|
||||||
- language
|
- language
|
||||||
- time_zone
|
- time_zone
|
||||||
type: object
|
type: object
|
||||||
|
@ -1595,6 +1643,12 @@ definitions:
|
||||||
type: object
|
type: object
|
||||||
schema.SiteLoginReq:
|
schema.SiteLoginReq:
|
||||||
properties:
|
properties:
|
||||||
|
allow_email_domains:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
allow_email_registrations:
|
||||||
|
type: boolean
|
||||||
allow_new_registrations:
|
allow_new_registrations:
|
||||||
type: boolean
|
type: boolean
|
||||||
login_required:
|
login_required:
|
||||||
|
@ -1602,6 +1656,12 @@ definitions:
|
||||||
type: object
|
type: object
|
||||||
schema.SiteLoginResp:
|
schema.SiteLoginResp:
|
||||||
properties:
|
properties:
|
||||||
|
allow_email_domains:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
allow_email_registrations:
|
||||||
|
type: boolean
|
||||||
allow_new_registrations:
|
allow_new_registrations:
|
||||||
type: boolean
|
type: boolean
|
||||||
login_required:
|
login_required:
|
||||||
|
@ -1654,6 +1714,50 @@ definitions:
|
||||||
$ref: '#/definitions/schema.ThemeOption'
|
$ref: '#/definitions/schema.ThemeOption'
|
||||||
type: array
|
type: array
|
||||||
type: object
|
type: object
|
||||||
|
schema.SiteUsersReq:
|
||||||
|
properties:
|
||||||
|
allow_update_avatar:
|
||||||
|
type: boolean
|
||||||
|
allow_update_bio:
|
||||||
|
type: boolean
|
||||||
|
allow_update_display_name:
|
||||||
|
type: boolean
|
||||||
|
allow_update_location:
|
||||||
|
type: boolean
|
||||||
|
allow_update_username:
|
||||||
|
type: boolean
|
||||||
|
allow_update_website:
|
||||||
|
type: boolean
|
||||||
|
default_avatar:
|
||||||
|
enum:
|
||||||
|
- system
|
||||||
|
- gravatar
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- default_avatar
|
||||||
|
type: object
|
||||||
|
schema.SiteUsersResp:
|
||||||
|
properties:
|
||||||
|
allow_update_avatar:
|
||||||
|
type: boolean
|
||||||
|
allow_update_bio:
|
||||||
|
type: boolean
|
||||||
|
allow_update_display_name:
|
||||||
|
type: boolean
|
||||||
|
allow_update_location:
|
||||||
|
type: boolean
|
||||||
|
allow_update_username:
|
||||||
|
type: boolean
|
||||||
|
allow_update_website:
|
||||||
|
type: boolean
|
||||||
|
default_avatar:
|
||||||
|
enum:
|
||||||
|
- system
|
||||||
|
- gravatar
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- default_avatar
|
||||||
|
type: object
|
||||||
schema.SiteWriteReq:
|
schema.SiteWriteReq:
|
||||||
properties:
|
properties:
|
||||||
recommend_tags:
|
recommend_tags:
|
||||||
|
@ -1732,6 +1836,17 @@ definitions:
|
||||||
value:
|
value:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
schema.UIOptionAction:
|
||||||
|
properties:
|
||||||
|
loading:
|
||||||
|
$ref: '#/definitions/schema.LoadingAction'
|
||||||
|
method:
|
||||||
|
type: string
|
||||||
|
on_complete:
|
||||||
|
$ref: '#/definitions/schema.OnCompleteAction'
|
||||||
|
url:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
schema.UnreviewedRevisionInfoInfo:
|
schema.UnreviewedRevisionInfoInfo:
|
||||||
properties:
|
properties:
|
||||||
content:
|
content:
|
||||||
|
@ -1794,8 +1909,6 @@ definitions:
|
||||||
description: website
|
description: website
|
||||||
maxLength: 500
|
maxLength: 500
|
||||||
type: string
|
type: string
|
||||||
required:
|
|
||||||
- display_name
|
|
||||||
type: object
|
type: object
|
||||||
schema.UpdatePluginConfigReq:
|
schema.UpdatePluginConfigReq:
|
||||||
properties:
|
properties:
|
||||||
|
@ -1818,6 +1931,15 @@ definitions:
|
||||||
required:
|
required:
|
||||||
- plugin_slug_name
|
- plugin_slug_name
|
||||||
type: object
|
type: object
|
||||||
|
schema.UpdatePrivilegesConfigReq:
|
||||||
|
properties:
|
||||||
|
level:
|
||||||
|
maximum: 3
|
||||||
|
minimum: 1
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- level
|
||||||
|
type: object
|
||||||
schema.UpdateSMTPConfigReq:
|
schema.UpdateSMTPConfigReq:
|
||||||
properties:
|
properties:
|
||||||
encryption:
|
encryption:
|
||||||
|
@ -1974,6 +2096,10 @@ definitions:
|
||||||
e_mail:
|
e_mail:
|
||||||
maxLength: 500
|
maxLength: 500
|
||||||
type: string
|
type: string
|
||||||
|
pass:
|
||||||
|
maxLength: 32
|
||||||
|
minLength: 8
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- e_mail
|
- e_mail
|
||||||
type: object
|
type: object
|
||||||
|
@ -2006,7 +2132,7 @@ definitions:
|
||||||
- e_mail
|
- e_mail
|
||||||
- pass
|
- pass
|
||||||
type: object
|
type: object
|
||||||
schema.UserModifyPassWordRequest:
|
schema.UserModifyPasswordReq:
|
||||||
properties:
|
properties:
|
||||||
old_pass:
|
old_pass:
|
||||||
maxLength: 32
|
maxLength: 32
|
||||||
|
@ -2554,6 +2680,47 @@ paths:
|
||||||
summary: get role list
|
summary: get role list
|
||||||
tags:
|
tags:
|
||||||
- admin
|
- admin
|
||||||
|
/answer/admin/api/setting/privileges:
|
||||||
|
get:
|
||||||
|
description: GetPrivilegesConfig get privileges config
|
||||||
|
produces:
|
||||||
|
- application/json
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/definitions/handler.RespBody'
|
||||||
|
- properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/definitions/schema.GetPrivilegesConfigResp'
|
||||||
|
type: object
|
||||||
|
security:
|
||||||
|
- ApiKeyAuth: []
|
||||||
|
summary: GetPrivilegesConfig get privileges config
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
put:
|
||||||
|
description: update privileges config
|
||||||
|
parameters:
|
||||||
|
- description: config
|
||||||
|
in: body
|
||||||
|
name: data
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/schema.UpdatePrivilegesConfigReq'
|
||||||
|
produces:
|
||||||
|
- application/json
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/handler.RespBody'
|
||||||
|
security:
|
||||||
|
- ApiKeyAuth: []
|
||||||
|
summary: update privileges config
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
/answer/admin/api/setting/smtp:
|
/answer/admin/api/setting/smtp:
|
||||||
get:
|
get:
|
||||||
description: GetSMTPConfig get smtp config
|
description: GetSMTPConfig get smtp config
|
||||||
|
@ -2923,6 +3090,47 @@ paths:
|
||||||
summary: update site custom css html config
|
summary: update site custom css html config
|
||||||
tags:
|
tags:
|
||||||
- admin
|
- admin
|
||||||
|
/answer/admin/api/siteinfo/users:
|
||||||
|
get:
|
||||||
|
description: get site user config
|
||||||
|
produces:
|
||||||
|
- application/json
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/definitions/handler.RespBody'
|
||||||
|
- properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/definitions/schema.SiteUsersResp'
|
||||||
|
type: object
|
||||||
|
security:
|
||||||
|
- ApiKeyAuth: []
|
||||||
|
summary: get site user config
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
put:
|
||||||
|
description: update site info config about users
|
||||||
|
parameters:
|
||||||
|
- description: users info
|
||||||
|
in: body
|
||||||
|
name: data
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/schema.SiteUsersReq'
|
||||||
|
produces:
|
||||||
|
- application/json
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/handler.RespBody'
|
||||||
|
security:
|
||||||
|
- ApiKeyAuth: []
|
||||||
|
summary: update site info config about users
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
/answer/admin/api/siteinfo/write:
|
/answer/admin/api/siteinfo/write:
|
||||||
get:
|
get:
|
||||||
description: get site interface
|
description: get site interface
|
||||||
|
@ -5248,12 +5456,12 @@ paths:
|
||||||
- application/json
|
- application/json
|
||||||
description: UserModifyPassWord
|
description: UserModifyPassWord
|
||||||
parameters:
|
parameters:
|
||||||
- description: UserModifyPassWordRequest
|
- description: UserModifyPasswordReq
|
||||||
in: body
|
in: body
|
||||||
name: data
|
name: data
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/schema.UserModifyPassWordRequest'
|
$ref: '#/definitions/schema.UserModifyPasswordReq'
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
|
|
7
go.sum
7
go.sum
|
@ -538,9 +538,8 @@ github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:v
|
||||||
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||||
github.com/onsi/ginkgo v1.7.0 h1:WSHQ+IS43OoUrWtD1/bbclrwK8TTH5hzp+umCiuxHgs=
|
github.com/onsi/ginkgo v1.7.0 h1:WSHQ+IS43OoUrWtD1/bbclrwK8TTH5hzp+umCiuxHgs=
|
||||||
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||||
|
github.com/onsi/gomega v1.4.3 h1:RE1xgDvH7imwFD45h+u2SgIfERHlS2yNG4DObb5BSKU=
|
||||||
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||||
github.com/onsi/gomega v1.20.1 h1:PA/3qinGoukvymdIDV8pii6tiZgC8kbmJO6Z5+b002Q=
|
|
||||||
github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo=
|
|
||||||
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
|
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
|
||||||
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
||||||
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
||||||
|
@ -782,8 +781,8 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y
|
||||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||||
golang.org/x/crypto v0.4.0 h1:UVQgzMY87xqpKNgb+kDsll2Igd33HszWHFLmpaRMq/8=
|
golang.org/x/crypto v0.1.0 h1:MDRAIl0xIo9Io2xV565hzXHw3zVseKrJKodhohM5CjU=
|
||||||
golang.org/x/crypto v0.4.0/go.mod h1:3quD/ATkf6oY+rnes5c3ExXTbLc8mueNue5/DoinL80=
|
golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||||
|
|
Loading…
Reference in New Issue