From 18ddec2d24989f9a245f929ac3c7f3d343548e54 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 16 十一月 2023 15:39:25 +0800 Subject: [PATCH] 采购单修改 --- docs/docs.go | 7385 +++++++++------------------------------------------------- 1 files changed, 1,189 insertions(+), 6,196 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index d435457..c9eadef 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -16,1770 +16,6 @@ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/api/createApi": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "鍒涘缓鍩虹api", - "parameters": [ - { - "description": "api璺緞, api涓枃鎻忚堪, api缁�, 鏂规硶", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysApi" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓鍩虹api", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/api/deleteApi": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "鍒犻櫎api", - "parameters": [ - { - "description": "ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysApi" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎api", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/api/deleteApisByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "鍒犻櫎閫変腑Api", - "parameters": [ - { - "description": "ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎閫変腑Api", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/api/freshCasbin": { - "get": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "鍒锋柊casbin缂撳瓨", - "responses": { - "200": { - "description": "鍒锋柊鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/api/getAllApis": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "鑾峰彇鎵�鏈夌殑Api 涓嶅垎椤�", - "responses": { - "200": { - "description": "鑾峰彇鎵�鏈夌殑Api 涓嶅垎椤�,杩斿洖鍖呮嫭api鍒楄〃", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysAPIListResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/api/getApiById": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "鏍规嵁id鑾峰彇api", - "parameters": [ - { - "description": "鏍规嵁id鑾峰彇api", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "鏍规嵁id鑾峰彇api,杩斿洖鍖呮嫭api璇︽儏", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysAPIResponse" - } - } - } - ] - } - } - } - } - }, - "/api/getApiList": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "鍒嗛〉鑾峰彇API鍒楄〃", - "parameters": [ - { - "description": "鍒嗛〉鑾峰彇API鍒楄〃", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SearchApiParams" - } - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇API鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/api/updateApi": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysApi" - ], - "summary": "淇敼鍩虹api", - "parameters": [ - { - "description": "api璺緞, api涓枃鎻忚堪, api缁�, 鏂规硶", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysApi" - } - } - ], - "responses": { - "200": { - "description": "淇敼鍩虹api", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authority/copyAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Authority" - ], - "summary": "鎷疯礉瑙掕壊", - "parameters": [ - { - "description": "鏃ц鑹瞚d, 鏂版潈闄恑d, 鏂版潈闄愬悕, 鏂扮埗瑙掕壊id", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/response.SysAuthorityCopyResponse" - } - } - ], - "responses": { - "200": { - "description": "鎷疯礉瑙掕壊,杩斿洖鍖呮嫭绯荤粺瑙掕壊璇︽儏", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysAuthorityResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authority/createAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Authority" - ], - "summary": "鍒涘缓瑙掕壊", - "parameters": [ - { - "description": "鏉冮檺id, 鏉冮檺鍚�, 鐖惰鑹瞚d", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAuthority" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓瑙掕壊,杩斿洖鍖呮嫭绯荤粺瑙掕壊璇︽儏", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysAuthorityResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authority/deleteAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Authority" - ], - "summary": "鍒犻櫎瑙掕壊", - "parameters": [ - { - "description": "鍒犻櫎瑙掕壊", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAuthority" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎瑙掕壊", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authority/getAuthorityList": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Authority" - ], - "summary": "鍒嗛〉鑾峰彇瑙掕壊鍒楄〃", - "parameters": [ - { - "description": "椤电爜, 姣忛〉澶у皬", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.PageInfo" - } - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇瑙掕壊鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authority/setDataAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Authority" - ], - "summary": "璁剧疆瑙掕壊璧勬簮鏉冮檺", - "parameters": [ - { - "description": "璁剧疆瑙掕壊璧勬簮鏉冮檺", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAuthority" - } - } - ], - "responses": { - "200": { - "description": "璁剧疆瑙掕壊璧勬簮鏉冮檺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authority/updateAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Authority" - ], - "summary": "鏇存柊瑙掕壊淇℃伅", - "parameters": [ - { - "description": "鏉冮檺id, 鏉冮檺鍚�, 鐖惰鑹瞚d", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAuthority" - } - } - ], - "responses": { - "200": { - "description": "鏇存柊瑙掕壊淇℃伅,杩斿洖鍖呮嫭绯荤粺瑙掕壊璇︽儏", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysAuthorityResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authorityBtn/canRemoveAuthorityBtn": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AuthorityBtn" - ], - "summary": "璁剧疆鏉冮檺鎸夐挳", - "responses": { - "200": { - "description": "鍒犻櫎鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authorityBtn/getAuthorityBtn": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AuthorityBtn" - ], - "summary": "鑾峰彇鏉冮檺鎸夐挳", - "parameters": [ - { - "description": "鑿滃崟id, 瑙掕壊id, 閫変腑鐨勬寜閽甶d", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SysAuthorityBtnReq" - } - } - ], - "responses": { - "200": { - "description": "杩斿洖鍒楄〃鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysAuthorityBtnRes" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/authorityBtn/setAuthorityBtn": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AuthorityBtn" - ], - "summary": "璁剧疆鏉冮檺鎸夐挳", - "parameters": [ - { - "description": "鑿滃崟id, 瑙掕壊id, 閫変腑鐨勬寜閽甶d", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SysAuthorityBtnReq" - } - } - ], - "responses": { - "200": { - "description": "杩斿洖鍒楄〃鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/createPackage": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鍒涘缓package", - "parameters": [ - { - "description": "鍒涘缓package", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAutoCode" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓package鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/createPlug": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鍒涘缓鎻掍欢妯℃澘", - "parameters": [ - { - "description": "鍒涘缓鎻掍欢妯℃澘", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAutoCode" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓鎻掍欢妯℃澘鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/createTemp": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鑷姩浠g爜妯℃澘", - "parameters": [ - { - "description": "鍒涘缓鑷姩浠g爜", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.AutoCodeStruct" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒涘缓鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/autoCode/delPackage": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鍒犻櫎package", - "parameters": [ - { - "description": "鍒涘缓package", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAutoCode" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎package鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/delSysHistory": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鍒犻櫎鍥炴粴璁板綍", - "parameters": [ - { - "description": "璇锋眰鍙傛暟", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎鍥炴粴璁板綍", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/getColumn": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鑾峰彇褰撳墠琛ㄦ墍鏈夊瓧娈�", - "responses": { - "200": { - "description": "鑾峰彇褰撳墠琛ㄦ墍鏈夊瓧娈�", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/getDatabase": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鑾峰彇褰撳墠鎵�鏈夋暟鎹簱", - "responses": { - "200": { - "description": "鑾峰彇褰撳墠鎵�鏈夋暟鎹簱", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/getMeta": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鑾峰彇meta淇℃伅", - "parameters": [ - { - "description": "璇锋眰鍙傛暟", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "鑾峰彇meta淇℃伅", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/getPackage": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鑾峰彇package", - "responses": { - "200": { - "description": "鍒涘缓package鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/getSysHistory": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鏌ヨ鍥炴粴璁板綍", - "parameters": [ - { - "description": "璇锋眰鍙傛暟", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SysAutoHistory" - } - } - ], - "responses": { - "200": { - "description": "鏌ヨ鍥炴粴璁板綍,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/getTables": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鑾峰彇褰撳墠鏁版嵁搴撴墍鏈夎〃", - "responses": { - "200": { - "description": "鑾峰彇褰撳墠鏁版嵁搴撴墍鏈夎〃", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/installPlugin": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "瀹夎鎻掍欢", - "parameters": [ - { - "type": "file", - "description": "this is a test file", - "name": "plug", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "瀹夎鎻掍欢鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object" - } - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/preview": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "棰勮鍒涘缓鍚庣殑浠g爜", - "parameters": [ - { - "description": "棰勮鍒涘缓浠g爜", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.AutoCodeStruct" - } - } - ], - "responses": { - "200": { - "description": "棰勮鍒涘缓鍚庣殑浠g爜", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/pubPlug": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鎵撳寘鎻掍欢", - "parameters": [ - { - "description": "鎵撳寘鎻掍欢", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysAutoCode" - } - } - ], - "responses": { - "200": { - "description": "鎵撳寘鎻掍欢鎴愬姛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/autoCode/rollback": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AutoCode" - ], - "summary": "鍥炴粴鑷姩鐢熸垚浠g爜", - "parameters": [ - { - "description": "璇锋眰鍙傛暟", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.RollBack" - } - } - ], - "responses": { - "200": { - "description": "鍥炴粴鑷姩鐢熸垚浠g爜", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/base/captcha": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Base" - ], - "summary": "鐢熸垚楠岃瘉鐮�", - "responses": { - "200": { - "description": "鐢熸垚楠岃瘉鐮�,杩斿洖鍖呮嫭闅忔満鏁癷d,base64,楠岃瘉鐮侀暱搴�,鏄惁寮�鍚獙璇佺爜", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysCaptchaResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/base/login": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "Base" - ], - "summary": "鐢ㄦ埛鐧诲綍", - "parameters": [ - { - "description": "鐢ㄦ埛鍚�, 瀵嗙爜, 楠岃瘉鐮�", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Login" - } - } - ], - "responses": { - "200": { - "description": "杩斿洖鍖呮嫭鐢ㄦ埛淇℃伅,token,杩囨湡鏃堕棿", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.LoginResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/casbin/UpdateCasbin": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Casbin" - ], - "summary": "鏇存柊瑙掕壊api鏉冮檺", - "parameters": [ - { - "description": "鏉冮檺id, 鏉冮檺妯″瀷鍒楄〃", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.CasbinInReceive" - } - } - ], - "responses": { - "200": { - "description": "鏇存柊瑙掕壊api鏉冮檺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/casbin/getPolicyPathByAuthorityId": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Casbin" - ], - "summary": "鑾峰彇鏉冮檺鍒楄〃", - "parameters": [ - { - "description": "鏉冮檺id, 鏉冮檺妯″瀷鍒楄〃", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.CasbinInReceive" - } - } - ], - "responses": { - "200": { - "description": "鑾峰彇鏉冮檺鍒楄〃,杩斿洖鍖呮嫭casbin璇︽儏鍒楄〃", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PolicyPathResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, "/con/createContract": { "post": { "security": [ @@ -1899,6 +135,61 @@ } } }, + "/con/downloadContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "涓嬭浇Contract", + "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"涓嬭浇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/con/findContract": { "get": { "security": [ @@ -1918,12 +209,8 @@ "summary": "鐢╥d鏌ヨContract", "parameters": [ { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", + "type": "string", + "name": "created_at", "in": "query" }, { @@ -1940,6 +227,11 @@ { "type": "integer", "name": "supplierID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -1973,16 +265,12 @@ "parameters": [ { "type": "string", - "name": "endCreatedAt", + "name": "created_at", "in": "query" }, { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", + "type": "string", + "name": "endCreatedAt", "in": "query" }, { @@ -2023,6 +311,11 @@ "type": "integer", "name": "supplierID", "in": "query" + }, + { + "type": "string", + "name": "updated_at", + "in": "query" } ], "responses": { @@ -2054,12 +347,8 @@ "summary": "棰勮Contract", "parameters": [ { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", + "type": "string", + "name": "created_at", "in": "query" }, { @@ -2076,6 +365,11 @@ { "type": "integer", "name": "supplierID", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -2122,643 +416,6 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", "schema": { "type": "string" - } - } - } - } - }, - "/customer/customer": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaCustomer" - ], - "summary": "鑾峰彇鍗曚竴瀹㈡埛淇℃伅", - "parameters": [ - { - "type": "string", - "description": "瀹㈡埛鍚�", - "name": "customerName", - "in": "query" - }, - { - "type": "string", - "description": "瀹㈡埛鎵嬫満鍙�", - "name": "customerPhoneData", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "integer", - "description": "绠$悊瑙掕壊ID", - "name": "sysUserAuthorityID", - "in": "query" - }, - { - "type": "integer", - "description": "绠$悊ID", - "name": "sysUserId", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鑾峰彇鍗曚竴瀹㈡埛淇℃伅,杩斿洖鍖呮嫭瀹㈡埛璇︽儏", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.ExaCustomerResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - }, - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaCustomer" - ], - "summary": "鏇存柊瀹㈡埛淇℃伅", - "parameters": [ - { - "description": "瀹㈡埛ID, 瀹㈡埛淇℃伅", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/example.ExaCustomer" - } - } - ], - "responses": { - "200": { - "description": "鏇存柊瀹㈡埛淇℃伅", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - }, - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaCustomer" - ], - "summary": "鍒涘缓瀹㈡埛", - "parameters": [ - { - "description": "瀹㈡埛鐢ㄦ埛鍚�, 瀹㈡埛鎵嬫満鍙风爜", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/example.ExaCustomer" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓瀹㈡埛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - }, - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaCustomer" - ], - "summary": "鍒犻櫎瀹㈡埛", - "parameters": [ - { - "description": "瀹㈡埛ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/example.ExaCustomer" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎瀹㈡埛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/customer/customerList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaCustomer" - ], - "summary": "鍒嗛〉鑾峰彇鏉冮檺瀹㈡埛鍒楄〃", - "parameters": [ - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇鏉冮檺瀹㈡埛鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/email/emailTest": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "System" - ], - "summary": "鍙戦�佹祴璇曢偖浠�", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鍙戦�佹垚鍔焅"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/email/sendEmail": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "System" - ], - "summary": "鍙戦�侀偖浠�", - "parameters": [ - { - "description": "鍙戦�侀偖浠跺繀椤荤殑鍙傛暟", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/response.Email" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鍙戦�佹垚鍔焅"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/fileUploadAndDownload/breakpointContinue": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "鏂偣缁紶鍒版湇鍔″櫒", - "parameters": [ - { - "type": "file", - "description": "an example for breakpoint resume, 鏂偣缁紶绀轰緥", - "name": "file", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "鏂偣缁紶鍒版湇鍔″櫒", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/fileUploadAndDownload/deleteFile": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "鍒犻櫎鏂囦欢", - "parameters": [ - { - "description": "浼犲叆鏂囦欢閲岄潰id鍗冲彲", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/example.ExaFileUploadAndDownload" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎鏂囦欢", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/fileUploadAndDownload/findFile": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "鍒涘缓鏂囦欢", - "parameters": [ - { - "type": "file", - "description": "涓婁紶鏂囦欢瀹屾垚", - "name": "file", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "鍒涘缓鏂囦欢,杩斿洖鍖呮嫭鏂囦欢璺緞", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.FilePathResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/fileUploadAndDownload/getFileList": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "鍒嗛〉鏂囦欢鍒楄〃", - "parameters": [ - { - "description": "椤电爜, 姣忛〉澶у皬", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.PageInfo" - } - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鏂囦欢鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/fileUploadAndDownload/removeChunk": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "鍒犻櫎鍒囩墖", - "parameters": [ - { - "type": "file", - "description": "鍒犻櫎缂撳瓨鍒囩墖", - "name": "file", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "鍒犻櫎鍒囩墖", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/fileUploadAndDownload/upload": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaFileUploadAndDownload" - ], - "summary": "涓婁紶鏂囦欢绀轰緥", - "parameters": [ - { - "type": "file", - "description": "涓婁紶鏂囦欢绀轰緥", - "name": "file", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "涓婁紶鏂囦欢绀轰緥,杩斿洖鍖呮嫭鏂囦欢璇︽儏", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.ExaFileResponse" - }, - "msg": { - "type": "string" - } - } - } - ] } } } @@ -2897,6 +554,11 @@ "summary": "鐢╥d鏌ヨIndustry", "parameters": [ { + "type": "string", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -2905,6 +567,11 @@ { "type": "string", "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -2936,6 +603,11 @@ ], "summary": "鍒嗛〉鑾峰彇Industry鍒楄〃", "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -2973,6 +645,11 @@ { "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -3019,122 +696,6 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", "schema": { "type": "string" - } - } - } - } - }, - "/init/checkdb": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "CheckDB" - ], - "summary": "鍒濆鍖栫敤鎴锋暟鎹簱", - "responses": { - "200": { - "description": "鍒濆鍖栫敤鎴锋暟鎹簱", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/init/initdb": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "InitDB" - ], - "summary": "鍒濆鍖栫敤鎴锋暟鎹簱", - "parameters": [ - { - "description": "鍒濆鍖栨暟鎹簱鍙傛暟", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.InitDB" - } - } - ], - "responses": { - "200": { - "description": "鍒濆鍖栫敤鎴锋暟鎹簱", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/jwt/jsonInBlacklist": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Jwt" - ], - "summary": "jwt鍔犲叆榛戝悕鍗�", - "responses": { - "200": { - "description": "jwt鍔犲叆榛戝悕鍗�", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] } } } @@ -3273,6 +834,11 @@ "summary": "鐢╥d鏌ヨMember", "parameters": [ { + "type": "string", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -3281,6 +847,11 @@ { "type": "string", "name": "nickname", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -3324,6 +895,11 @@ "parameters": [ { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "name": "endCreatedAt", "in": "query" }, @@ -3359,6 +935,11 @@ { "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -3402,6 +983,11 @@ "parameters": [ { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "name": "endCreatedAt", "in": "query" }, @@ -3437,6 +1023,11 @@ { "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -3498,466 +1089,6 @@ } } }, - "/menu/addBaseMenu": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Menu" - ], - "summary": "鏂板鑿滃崟", - "parameters": [ - { - "description": "璺敱path, 鐖惰彍鍗旾D, 璺敱name, 瀵瑰簲鍓嶇鏂囦欢璺緞, 鎺掑簭鏍囪", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysBaseMenu" - } - } - ], - "responses": { - "200": { - "description": "鏂板鑿滃崟", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/addMenuAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AuthorityMenu" - ], - "summary": "澧炲姞menu鍜岃鑹插叧鑱斿叧绯�", - "parameters": [ - { - "description": "瑙掕壊ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.AddMenuAuthorityInfo" - } - } - ], - "responses": { - "200": { - "description": "澧炲姞menu鍜岃鑹插叧鑱斿叧绯�", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/deleteBaseMenu": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Menu" - ], - "summary": "鍒犻櫎鑿滃崟", - "parameters": [ - { - "description": "鑿滃崟id", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎鑿滃崟", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/getBaseMenuById": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Menu" - ], - "summary": "鏍规嵁id鑾峰彇鑿滃崟", - "parameters": [ - { - "description": "鑿滃崟id", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "鏍规嵁id鑾峰彇鑿滃崟,杩斿洖鍖呮嫭绯荤粺鑿滃崟鍒楄〃", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysBaseMenuResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/getBaseMenuTree": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "AuthorityMenu" - ], - "summary": "鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢�", - "parameters": [ - { - "description": "绌�", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Empty" - } - } - ], - "responses": { - "200": { - "description": "鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢�,杩斿洖鍖呮嫭绯荤粺鑿滃崟鍒楄〃", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysBaseMenusResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/getMenu": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "AuthorityMenu" - ], - "summary": "鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢�", - "parameters": [ - { - "description": "绌�", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Empty" - } - } - ], - "responses": { - "200": { - "description": "鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢�,杩斿洖鍖呮嫭绯荤粺鑿滃崟璇︽儏鍒楄〃", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysMenusResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/getMenuAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "AuthorityMenu" - ], - "summary": "鑾峰彇鎸囧畾瑙掕壊menu", - "parameters": [ - { - "description": "瑙掕壊ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetAuthorityId" - } - } - ], - "responses": { - "200": { - "description": "鑾峰彇鎸囧畾瑙掕壊menu", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/getMenuList": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Menu" - ], - "summary": "鍒嗛〉鑾峰彇鍩虹menu鍒楄〃", - "parameters": [ - { - "description": "椤电爜, 姣忛〉澶у皬", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.PageInfo" - } - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇鍩虹menu鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/menu/updateBaseMenu": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Menu" - ], - "summary": "鏇存柊鑿滃崟", - "parameters": [ - { - "description": "璺敱path, 鐖惰彍鍗旾D, 璺敱name, 瀵瑰簲鍓嶇鏂囦欢璺緞, 鎺掑簭鏍囪", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysBaseMenu" - } - } - ], - "responses": { - "200": { - "description": "鏇存柊鑿滃崟", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, "/p/createProduct": { "post": { "security": [ @@ -3982,7 +1113,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.Product" + "$ref": "#/definitions/request.ProductCreate" } } ], @@ -4020,7 +1151,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.Product" + "$ref": "#/definitions/request.GetById" } } ], @@ -4092,73 +1223,8 @@ "parameters": [ { "type": "integer", - "name": "deliveryTime", - "in": "query" - }, - { - "type": "integer", "description": "涓婚敭ID", "name": "id", - "in": "query" - }, - { - "type": "integer", - "name": "maximumStock", - "in": "query" - }, - { - "type": "integer", - "name": "minimumStock", - "in": "query" - }, - { - "type": "string", - "name": "modelNumber", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - }, - { - "type": "string", - "name": "number", - "in": "query" - }, - { - "type": "string", - "name": "productType", - "in": "query" - }, - { - "type": "number", - "name": "purchasePrice", - "in": "query" - }, - { - "type": "string", - "name": "remark", - "in": "query" - }, - { - "type": "integer", - "name": "shippingDuration", - "in": "query" - }, - { - "type": "string", - "name": "specifications", - "in": "query" - }, - { - "type": "integer", - "name": "supplierId", - "in": "query" - }, - { - "type": "string", - "name": "unit", "in": "query" } ], @@ -4191,35 +1257,19 @@ "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", "parameters": [ { + "type": "string", + "name": "categoryName", + "in": "query" + }, + { "type": "integer", "name": "deliveryTime", "in": "query" }, { "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", "description": "鍏抽敭瀛�", "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "name": "maximumStock", - "in": "query" - }, - { - "type": "integer", - "name": "minimumStock", "in": "query" }, { @@ -4250,18 +1300,8 @@ "in": "query" }, { - "type": "string", - "name": "productType", - "in": "query" - }, - { "type": "number", "name": "purchasePrice", - "in": "query" - }, - { - "type": "string", - "name": "remark", "in": "query" }, { @@ -4276,12 +1316,22 @@ }, { "type": "string", - "name": "startCreatedAt", + "name": "supplier", "in": "query" }, { "type": "integer", "name": "supplierId", + "in": "query" + }, + { + "type": "string", + "name": "supplierName", + "in": "query" + }, + { + "type": "string", + "name": "supplierNumber", "in": "query" }, { @@ -4319,35 +1369,19 @@ "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", "parameters": [ { + "type": "string", + "name": "categoryName", + "in": "query" + }, + { "type": "integer", "name": "deliveryTime", "in": "query" }, { "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", "description": "鍏抽敭瀛�", "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "name": "maximumStock", - "in": "query" - }, - { - "type": "integer", - "name": "minimumStock", "in": "query" }, { @@ -4378,18 +1412,8 @@ "in": "query" }, { - "type": "string", - "name": "productType", - "in": "query" - }, - { "type": "number", "name": "purchasePrice", - "in": "query" - }, - { - "type": "string", - "name": "remark", "in": "query" }, { @@ -4404,12 +1428,22 @@ }, { "type": "string", - "name": "startCreatedAt", + "name": "supplier", "in": "query" }, { "type": "integer", "name": "supplierId", + "in": "query" + }, + { + "type": "string", + "name": "supplierName", + "in": "query" + }, + { + "type": "string", + "name": "supplierNumber", "in": "query" }, { @@ -4452,7 +1486,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/test.Product" + "$ref": "#/definitions/test.SupplierMaterial" } } ], @@ -4461,6 +1495,471 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", "schema": { "type": "string" + } + } + } + } + }, + "/purchase/purchase": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鏇存柊閲囪喘鍗曚俊鎭�", + "parameters": [ + { + "description": "閲囪喘鍗旾D, 閲囪喘鍗曚俊鎭�", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.UpdatePurchase" + } + } + ], + "responses": { + "200": { + "description": "鏇存柊閲囪喘鍗曚俊鎭�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍒涘缓閲囪喘鍗�", + "parameters": [ + { + "description": "閲囪喘鍗�,閲囪喘鍗曚骇鍝�", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/purchaserequest.AddPurchase" + } + } + ], + "responses": { + "200": { + "description": "鍒涘缓閲囪喘鍗�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchase/{id}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇鍗曚竴閲囪喘鍗曚俊鎭�", + "parameters": [ + { + "type": "integer", + "description": "閲囪喘鍗旾D", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鑾峰彇鍗曚竴閲囪喘鍗曚俊鎭�,杩斿洖鍖呮嫭閲囪喘鍗曡鎯�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PurchaseResponse" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + }, + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍒犻櫎閲囪喘鍗�", + "parameters": [ + { + "type": "integer", + "description": "閲囪喘鍗旾D", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鍒犻櫎閲囪喘鍗�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchaseList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�", + "parameters": [ + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchaseType": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鍒涘缓閲囪喘绫诲瀷", + "parameters": [ + { + "description": "閲囪喘绫诲瀷list", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/purchaserequest.PurchaseType" + } + } + } + ], + "responses": { + "200": { + "description": "鍒涘缓閲囪喘绫诲瀷", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/purchaseTypeList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鑾峰彇閲囪喘绫诲瀷鍒楄〃", + "responses": { + "200": { + "description": "鑾峰彇閲囪喘绫诲瀷鍒楄〃", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/purchase.PurchaseType" + } + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/qualityInspectList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "QualityInspect" + ], + "summary": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�", + "parameters": [ + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/purchase/submit": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Purchase" + ], + "summary": "鎻愪氦閲囪喘鍗�", + "parameters": [ + { + "type": "integer", + "description": "閲囪喘鍗旾D", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎻愪氦閲囪喘鍗�", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] } } } @@ -4658,6 +2157,11 @@ }, { "type": "string", + "name": "created_at", + "in": "query" + }, + { + "type": "string", "name": "detailAddress", "in": "query" }, @@ -4714,6 +2218,11 @@ }, { "type": "string", + "name": "updated_at", + "in": "query" + }, + { + "type": "string", "name": "url", "in": "query" } @@ -4764,6 +2273,11 @@ { "type": "string", "name": "contact", + "in": "query" + }, + { + "type": "string", + "name": "created_at", "in": "query" }, { @@ -4848,6 +2362,11 @@ { "type": "string", "name": "supplierType", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" }, { @@ -5037,6 +2556,11 @@ "summary": "鐢╥d鏌ヨSupplierType", "parameters": [ { + "type": "string", + "name": "created_at", + "in": "query" + }, + { "type": "integer", "description": "涓婚敭ID", "name": "id", @@ -5045,6 +2569,11 @@ { "type": "string", "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -5076,6 +2605,11 @@ ], "summary": "鍒嗛〉鑾峰彇SupplierType鍒楄〃", "parameters": [ + { + "type": "string", + "name": "created_at", + "in": "query" + }, { "type": "string", "name": "endCreatedAt", @@ -5113,6 +2647,11 @@ { "type": "string", "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "updated_at", "in": "query" } ], @@ -5159,1041 +2698,6 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", "schema": { "type": "string" - } - } - } - } - }, - "/sysDictionary/createSysDictionary": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionary" - ], - "summary": "鍒涘缓SysDictionary", - "parameters": [ - { - "description": "SysDictionary妯″瀷", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionary" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓SysDictionary", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionary/deleteSysDictionary": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionary" - ], - "summary": "鍒犻櫎SysDictionary", - "parameters": [ - { - "description": "SysDictionary妯″瀷", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionary" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎SysDictionary", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionary/findSysDictionary": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionary" - ], - "summary": "鐢╥d鏌ヨSysDictionary", - "parameters": [ - { - "type": "string", - "description": "鎻忚堪", - "name": "desc", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "瀛楀吀鍚嶏紙涓級", - "name": "name", - "in": "query" - }, - { - "type": "boolean", - "description": "鐘舵��", - "name": "status", - "in": "query" - }, - { - "type": "string", - "description": "瀛楀吀鍚嶏紙鑻憋級", - "name": "type", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鐢╥d鏌ヨSysDictionary", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionary/getSysDictionaryList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionary" - ], - "summary": "鍒嗛〉鑾峰彇SysDictionary鍒楄〃", - "parameters": [ - { - "type": "string", - "description": "鎻忚堪", - "name": "desc", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "description": "瀛楀吀鍚嶏紙涓級", - "name": "name", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "boolean", - "description": "鐘舵��", - "name": "status", - "in": "query" - }, - { - "type": "string", - "description": "瀛楀吀鍚嶏紙鑻憋級", - "name": "type", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇SysDictionary鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionary/updateSysDictionary": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionary" - ], - "summary": "鏇存柊SysDictionary", - "parameters": [ - { - "description": "SysDictionary妯″瀷", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionary" - } - } - ], - "responses": { - "200": { - "description": "鏇存柊SysDictionary", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionaryDetail/createSysDictionaryDetail": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionaryDetail" - ], - "summary": "鍒涘缓SysDictionaryDetail", - "parameters": [ - { - "description": "SysDictionaryDetail妯″瀷", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓SysDictionaryDetail", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionaryDetail/deleteSysDictionaryDetail": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionaryDetail" - ], - "summary": "鍒犻櫎SysDictionaryDetail", - "parameters": [ - { - "description": "SysDictionaryDetail妯″瀷", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎SysDictionaryDetail", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionaryDetail/findSysDictionaryDetail": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionaryDetail" - ], - "summary": "鐢╥d鏌ヨSysDictionaryDetail", - "parameters": [ - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "灞曠ず鍊�", - "name": "label", - "in": "query" - }, - { - "type": "integer", - "description": "鎺掑簭鏍囪", - "name": "sort", - "in": "query" - }, - { - "type": "boolean", - "description": "鍚敤鐘舵��", - "name": "status", - "in": "query" - }, - { - "type": "integer", - "description": "鍏宠仈鏍囪", - "name": "sysDictionaryID", - "in": "query" - }, - { - "type": "integer", - "description": "瀛楀吀鍊�", - "name": "value", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鐢╥d鏌ヨSysDictionaryDetail", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionaryDetail/getSysDictionaryDetailList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionaryDetail" - ], - "summary": "鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃", - "parameters": [ - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "description": "灞曠ず鍊�", - "name": "label", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "integer", - "description": "鎺掑簭鏍囪", - "name": "sort", - "in": "query" - }, - { - "type": "boolean", - "description": "鍚敤鐘舵��", - "name": "status", - "in": "query" - }, - { - "type": "integer", - "description": "鍏宠仈鏍囪", - "name": "sysDictionaryID", - "in": "query" - }, - { - "type": "integer", - "description": "瀛楀吀鍊�", - "name": "value", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysDictionaryDetail/updateSysDictionaryDetail": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysDictionaryDetail" - ], - "summary": "鏇存柊SysDictionaryDetail", - "parameters": [ - { - "description": "鏇存柊SysDictionaryDetail", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" - } - } - ], - "responses": { - "200": { - "description": "鏇存柊SysDictionaryDetail", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysOperationRecord/createSysOperationRecord": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysOperationRecord" - ], - "summary": "鍒涘缓SysOperationRecord", - "parameters": [ - { - "description": "鍒涘缓SysOperationRecord", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysOperationRecord" - } - } - ], - "responses": { - "200": { - "description": "鍒涘缓SysOperationRecord", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysOperationRecord/deleteSysOperationRecord": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysOperationRecord" - ], - "summary": "鍒犻櫎SysOperationRecord", - "parameters": [ - { - "description": "SysOperationRecord妯″瀷", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysOperationRecord" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎SysOperationRecord", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysOperationRecord/deleteSysOperationRecordByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysOperationRecord" - ], - "summary": "鎵归噺鍒犻櫎SysOperationRecord", - "parameters": [ - { - "description": "鎵归噺鍒犻櫎SysOperationRecord", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "鎵归噺鍒犻櫎SysOperationRecord", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysOperationRecord/findSysOperationRecord": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysOperationRecord" - ], - "summary": "鐢╥d鏌ヨSysOperationRecord", - "parameters": [ - { - "type": "string", - "description": "浠g悊", - "name": "agent", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰Body", - "name": "body", - "in": "query" - }, - { - "type": "string", - "description": "閿欒淇℃伅", - "name": "error_message", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰ip", - "name": "ip", - "in": "query" - }, - { - "type": "string", - "description": "寤惰繜", - "name": "latency", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰鏂规硶", - "name": "method", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰璺緞", - "name": "path", - "in": "query" - }, - { - "type": "string", - "description": "鍝嶅簲Body", - "name": "resp", - "in": "query" - }, - { - "type": "integer", - "description": "璇锋眰鐘舵��", - "name": "status", - "in": "query" - }, - { - "type": "integer", - "description": "鐢ㄦ埛id", - "name": "user_id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鐢╥d鏌ヨSysOperationRecord", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/sysOperationRecord/getSysOperationRecordList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysOperationRecord" - ], - "summary": "鍒嗛〉鑾峰彇SysOperationRecord鍒楄〃", - "parameters": [ - { - "type": "string", - "description": "浠g悊", - "name": "agent", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰Body", - "name": "body", - "in": "query" - }, - { - "type": "string", - "description": "閿欒淇℃伅", - "name": "error_message", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰ip", - "name": "ip", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "description": "寤惰繜", - "name": "latency", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰鏂规硶", - "name": "method", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "string", - "description": "璇锋眰璺緞", - "name": "path", - "in": "query" - }, - { - "type": "string", - "description": "鍝嶅簲Body", - "name": "resp", - "in": "query" - }, - { - "type": "integer", - "description": "璇锋眰鐘舵��", - "name": "status", - "in": "query" - }, - { - "type": "integer", - "description": "鐢ㄦ埛id", - "name": "user_id", - "in": "query" - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇SysOperationRecord鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] } } } @@ -6265,7 +2769,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.SysConfigResponse" + "$ref": "#/definitions/system.System" }, "msg": { "type": "string" @@ -6360,604 +2864,9 @@ } } } - }, - "/user/SetSelfInfo": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "璁剧疆鐢ㄦ埛淇℃伅", - "parameters": [ - { - "description": "ID, 鐢ㄦ埛鍚�, 鏄电О, 澶村儚閾炬帴", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysUser" - } - } - ], - "responses": { - "200": { - "description": "璁剧疆鐢ㄦ埛淇℃伅", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/admin_register": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "鐢ㄦ埛娉ㄥ唽璐﹀彿", - "parameters": [ - { - "description": "鐢ㄦ埛鍚�, 鏄电О, 瀵嗙爜, 瑙掕壊ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.Register" - } - } - ], - "responses": { - "200": { - "description": "鐢ㄦ埛娉ㄥ唽璐﹀彿,杩斿洖鍖呮嫭鐢ㄦ埛淇℃伅", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.SysUserResponse" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/changePassword": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "鐢ㄦ埛淇敼瀵嗙爜", - "parameters": [ - { - "description": "鐢ㄦ埛鍚�, 鍘熷瘑鐮�, 鏂板瘑鐮�", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.ChangePasswordReq" - } - } - ], - "responses": { - "200": { - "description": "鐢ㄦ埛淇敼瀵嗙爜", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/deleteUser": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "鍒犻櫎鐢ㄦ埛", - "parameters": [ - { - "description": "鐢ㄦ埛ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "鍒犻櫎鐢ㄦ埛", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/getUserInfo": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "鑾峰彇鐢ㄦ埛淇℃伅", - "responses": { - "200": { - "description": "鑾峰彇鐢ㄦ埛淇℃伅", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/getUserList": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "鍒嗛〉鑾峰彇鐢ㄦ埛鍒楄〃", - "parameters": [ - { - "description": "椤电爜, 姣忛〉澶у皬", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.PageInfo" - } - } - ], - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇鐢ㄦ埛鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/resetPassword": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "閲嶇疆鐢ㄦ埛瀵嗙爜", - "parameters": [ - { - "description": "ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysUser" - } - } - ], - "responses": { - "200": { - "description": "閲嶇疆鐢ㄦ埛瀵嗙爜", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/setUserAuthorities": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "璁剧疆鐢ㄦ埛鏉冮檺", - "parameters": [ - { - "description": "鐢ㄦ埛UUID, 瑙掕壊ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SetUserAuthorities" - } - } - ], - "responses": { - "200": { - "description": "璁剧疆鐢ㄦ埛鏉冮檺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/setUserAuthority": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "鏇存敼鐢ㄦ埛鏉冮檺", - "parameters": [ - { - "description": "鐢ㄦ埛UUID, 瑙掕壊ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SetUserAuth" - } - } - ], - "responses": { - "200": { - "description": "璁剧疆鐢ㄦ埛鏉冮檺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "/user/setUserInfo": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysUser" - ], - "summary": "璁剧疆鐢ㄦ埛淇℃伅", - "parameters": [ - { - "description": "ID, 鐢ㄦ埛鍚�, 鏄电О, 澶村儚閾炬帴", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysUser" - } - } - ], - "responses": { - "200": { - "description": "璁剧疆鐢ㄦ埛淇℃伅", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "type": "object", - "additionalProperties": true - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } } }, "definitions": { - "config.AliyunOSS": { - "type": "object", - "properties": { - "access-key-id": { - "type": "string" - }, - "access-key-secret": { - "type": "string" - }, - "base-path": { - "type": "string" - }, - "bucket-name": { - "type": "string" - }, - "bucket-url": { - "type": "string" - }, - "endpoint": { - "type": "string" - } - } - }, - "config.Autocode": { - "type": "object", - "properties": { - "root": { - "type": "string" - }, - "server": { - "type": "string" - }, - "server-api": { - "type": "string" - }, - "server-initialize": { - "type": "string" - }, - "server-model": { - "type": "string" - }, - "server-plug": { - "type": "string" - }, - "server-request": { - "type": "string" - }, - "server-router": { - "type": "string" - }, - "server-service": { - "type": "string" - }, - "transfer-restart": { - "type": "boolean" - }, - "web": { - "type": "string" - }, - "web-api": { - "type": "string" - }, - "web-form": { - "type": "string" - }, - "web-table": { - "type": "string" - } - } - }, - "config.AwsS3": { - "type": "object", - "properties": { - "base-url": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "disable-ssl": { - "type": "boolean" - }, - "endpoint": { - "type": "string" - }, - "path-prefix": { - "type": "string" - }, - "region": { - "type": "string" - }, - "s3-force-path-style": { - "type": "boolean" - }, - "secret-id": { - "type": "string" - }, - "secret-key": { - "type": "string" - } - } - }, "config.CORS": { "type": "object", "properties": { @@ -6988,110 +2897,6 @@ "type": "string" }, "expose-headers": { - "type": "string" - } - } - }, - "config.Captcha": { - "type": "object", - "properties": { - "img-height": { - "description": "楠岃瘉鐮侀珮搴�", - "type": "integer" - }, - "img-width": { - "description": "楠岃瘉鐮佸搴�", - "type": "integer" - }, - "key-long": { - "description": "楠岃瘉鐮侀暱搴�", - "type": "integer" - }, - "open-captcha": { - "description": "闃茬垎鐮撮獙璇佺爜寮�鍚鏁帮紝0浠h〃姣忔鐧诲綍閮介渶瑕侀獙璇佺爜锛屽叾浠栨暟瀛椾唬琛ㄩ敊璇瘑鐮佹鏁帮紝濡�3浠h〃閿欒涓夋鍚庡嚭鐜伴獙璇佺爜", - "type": "integer" - }, - "open-captcha-timeout": { - "description": "闃茬垎鐮撮獙璇佺爜瓒呮椂鏃堕棿锛屽崟浣嶏細s(绉�)", - "type": "integer" - } - } - }, - "config.Detail": { - "type": "object", - "properties": { - "compareField": { - "description": "闇�瑕佹瘮杈冩椂闂寸殑瀛楁", - "type": "string" - }, - "interval": { - "description": "鏃堕棿闂撮殧", - "type": "string" - }, - "tableName": { - "description": "闇�瑕佹竻鐞嗙殑琛ㄥ悕", - "type": "string" - } - } - }, - "config.Excel": { - "type": "object", - "properties": { - "dir": { - "type": "string" - } - } - }, - "config.HuaWeiObs": { - "type": "object", - "properties": { - "access-key": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "path": { - "type": "string" - }, - "secret-key": { - "type": "string" - } - } - }, - "config.JWT": { - "type": "object", - "properties": { - "buffer-time": { - "description": "缂撳啿鏃堕棿", - "type": "string" - }, - "expires-time": { - "description": "杩囨湡鏃堕棿", - "type": "string" - }, - "issuer": { - "description": "绛惧彂鑰�", - "type": "string" - }, - "signing-key": { - "description": "jwt绛惧悕", - "type": "string" - } - } - }, - "config.Local": { - "type": "object", - "properties": { - "path": { - "description": "鏈湴鏂囦欢璁块棶璺緞", - "type": "string" - }, - "store-path": { - "description": "鏈湴鏂囦欢瀛樺偍璺緞", "type": "string" } } @@ -7316,76 +3121,9 @@ } } }, - "config.Qiniu": { - "type": "object", - "properties": { - "access-key": { - "description": "绉橀挜AK", - "type": "string" - }, - "bucket": { - "description": "绌洪棿鍚嶇О", - "type": "string" - }, - "img-path": { - "description": "CDN鍔犻�熷煙鍚�", - "type": "string" - }, - "secret-key": { - "description": "绉橀挜SK", - "type": "string" - }, - "use-cdn-domains": { - "description": "涓婁紶鏄惁浣跨敤CDN涓婁紶鍔犻��", - "type": "boolean" - }, - "use-https": { - "description": "鏄惁浣跨敤https", - "type": "boolean" - }, - "zone": { - "description": "瀛樺偍鍖哄煙", - "type": "string" - } - } - }, - "config.Redis": { - "type": "object", - "properties": { - "addr": { - "description": "鏈嶅姟鍣ㄥ湴鍧�:绔彛", - "type": "string" - }, - "db": { - "description": "redis鐨勫摢涓暟鎹簱", - "type": "integer" - }, - "password": { - "description": "瀵嗙爜", - "type": "string" - } - } - }, "config.Server": { "type": "object", "properties": { - "aliyun-oss": { - "$ref": "#/definitions/config.AliyunOSS" - }, - "autocode": { - "description": "auto", - "allOf": [ - { - "$ref": "#/definitions/config.Autocode" - } - ] - }, - "aws-s3": { - "$ref": "#/definitions/config.AwsS3" - }, - "captcha": { - "$ref": "#/definitions/config.Captcha" - }, "cors": { "description": "璺ㄥ煙閰嶇疆", "allOf": [ @@ -7399,26 +3137,6 @@ "items": { "$ref": "#/definitions/config.SpecializedDB" } - }, - "email": { - "$ref": "#/definitions/srm_config.Email" - }, - "excel": { - "$ref": "#/definitions/config.Excel" - }, - "hua-wei-obs": { - "$ref": "#/definitions/config.HuaWeiObs" - }, - "jwt": { - "$ref": "#/definitions/config.JWT" - }, - "local": { - "description": "oss", - "allOf": [ - { - "$ref": "#/definitions/config.Local" - } - ] }, "mssql": { "$ref": "#/definitions/config.Mssql" @@ -7437,26 +3155,19 @@ "pgsql": { "$ref": "#/definitions/config.Pgsql" }, - "qiniu": { - "$ref": "#/definitions/config.Qiniu" - }, - "redis": { - "$ref": "#/definitions/config.Redis" - }, "sqlite": { "$ref": "#/definitions/config.Sqlite" }, "system": { "$ref": "#/definitions/config.System" }, - "tencent-cos": { - "$ref": "#/definitions/config.TencentCOS" - }, - "timer": { - "$ref": "#/definitions/config.Timer" - }, "zap": { - "$ref": "#/definitions/config.Zap" + "description": "JWT JWT ` + "`" + `mapstructure:\"jwt\" json:\"jwt\" yaml:\"jwt\"` + "`" + `", + "allOf": [ + { + "$ref": "#/definitions/config.Zap" + } + ] } } }, @@ -7595,79 +3306,23 @@ "type": "string" }, "grpc-admin-url": { - "description": "grpc鏈嶅姟鍦板潃", + "description": "admin grpc鏈嶅姟鍦板潃", + "type": "string" + }, + "grpc-port": { + "description": "瀵瑰鎻愪緵鏈嶅姟grpc绔彛", "type": "string" }, "grpc-url": { - "description": "grpc鏈嶅姟鍦板潃", + "description": "aps grpc鏈嶅姟鍦板潃", "type": "string" }, - "iplimit-count": { - "type": "integer" - }, - "iplimit-time": { - "type": "integer" - }, - "oss-type": { - "description": "Oss绫诲瀷", + "grpc-wms-url": { + "description": "wms grpc鏈嶅姟鍦板潃", "type": "string" }, "router-prefix": { "type": "string" - }, - "use-multipoint": { - "description": "澶氱偣鐧诲綍鎷︽埅", - "type": "boolean" - }, - "use-redis": { - "description": "浣跨敤redis", - "type": "boolean" - } - } - }, - "config.TencentCOS": { - "type": "object", - "properties": { - "base-url": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "path-prefix": { - "type": "string" - }, - "region": { - "type": "string" - }, - "secret-id": { - "type": "string" - }, - "secret-key": { - "type": "string" - } - } - }, - "config.Timer": { - "type": "object", - "properties": { - "detail": { - "type": "array", - "items": { - "$ref": "#/definitions/config.Detail" - } - }, - "spec": { - "description": "CRON琛ㄨ揪寮�", - "type": "string" - }, - "start": { - "description": "鏄惁鍚敤", - "type": "boolean" - }, - "with_seconds": { - "description": "鏄惁绮剧‘鍒扮", - "type": "boolean" } } }, @@ -7712,177 +3367,402 @@ } } }, - "example.ExaCustomer": { + "purchase.OrderStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-comments": { + "OrderStatusCanceled": "宸插彇娑�", + "OrderStatusCompleted": "宸插畬鎴�", + "OrderStatusConfirmed": "寰呯‘璁�", + "OrderStatusReceived": "寰呭叆搴�", + "OrderStatusStored": "宸插叆搴�" + }, + "x-enum-varnames": [ + "OrderStatusConfirmed", + "OrderStatusReceived", + "OrderStatusStored", + "OrderStatusCompleted", + "OrderStatusCanceled" + ] + }, + "purchase.PriceAdjustmentType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-comments": { + "PriceAdjustmentTypeAdd": "澧炲姞", + "PriceAdjustmentTypeSub": "鍑忓皯" + }, + "x-enum-varnames": [ + "PriceAdjustmentTypeAdd", + "PriceAdjustmentTypeSub" + ] + }, + "purchase.Purchase": { "type": "object", "properties": { - "customerName": { - "description": "瀹㈡埛鍚�", + "contact": { + "description": "鑱旂郴浜�", "type": "string" }, - "customerPhoneData": { - "description": "瀹㈡埛鎵嬫満鍙�", + "created_at": { + "type": "string" + }, + "creator": { + "description": "鍒跺崟浜�", + "type": "string" + }, + "deliveryDate": { + "description": "浜や粯鏃ユ湡", + "type": "string" + }, + "handledBy": { + "description": "缁忓姙浜�", "type": "string" }, "id": { "description": "涓婚敭ID", "type": "integer" }, - "sysUser": { - "description": "绠$悊璇︽儏", + "invoiceAmount": { + "description": "宸叉敹绁ㄩ噾棰�", + "type": "number" + }, + "name": { + "description": "閲囪喘鍚嶇О", + "type": "string" + }, + "number": { + "description": "閲囪喘缂栧彿", + "type": "string" + }, + "orderSource": { + "description": "鍗曟嵁鏉ユ簮", + "type": "string" + }, + "orderType": { + "description": "鍗曟嵁绫诲瀷", + "type": "string" + }, + "paidAmount": { + "description": "宸蹭粯閲戦", + "type": "number" + }, + "phone": { + "description": "鑱旂郴浜虹數璇�", + "type": "string" + }, + "priceAdjustment": { + "description": "浠锋牸璋冩暣鍊�", + "type": "number" + }, + "priceAdjustmentType": { + "description": "浠锋牸璋冩暣绫诲瀷", "allOf": [ { - "$ref": "#/definitions/system.SysUser" + "$ref": "#/definitions/purchase.PriceAdjustmentType" } ] }, - "sysUserAuthorityID": { - "description": "绠$悊瑙掕壊ID", + "principal": { + "description": "閲囪喘璐熻矗浜�", + "type": "string" + }, + "purchaseType": { + "$ref": "#/definitions/purchase.PurchaseType" + }, + "purchaseTypeId": { + "description": "閲囪喘绫诲瀷id", "type": "integer" }, - "sysUserId": { - "description": "绠$悊ID", + "quantity": { + "description": "閲囪喘鏁伴噺", + "type": "number" + }, + "realTotalPrice": { + "description": "鏈�缁堜环鏍�", + "type": "number" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "shouldPayAmount": { + "description": "搴斾粯閲戦", + "type": "number" + }, + "signingDate": { + "description": "绛剧害鏃ユ湡", + "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" + }, + "supplierId": { + "description": "渚涘簲鍟唅d", "type": "integer" + }, + "totalPrice": { + "description": "浠风◣鍚堣", + "type": "number" + }, + "unInvoiceAmount": { + "description": "鏈敹绁ㄩ噾棰�", + "type": "number" + }, + "updated_at": { + "type": "string" + }, + "warehouse": { + "description": "鏀惰揣浠撳簱", + "type": "string" + }, + "wholeDiscount": { + "description": "鏁村崟鎶樻墸鍊�", + "type": "number" + }, + "wholeDiscountType": { + "description": "鏁村崟鎶樻墸绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/purchase.WholeDiscountType" + } + ] } } }, - "example.ExaFile": { + "purchase.PurchaseProducts": { "type": "object", "properties": { - "chunkTotal": { - "type": "integer" + "amount": { + "description": "閲囪喘鏁伴噺", + "type": "number" }, - "exaFileChunk": { - "type": "array", - "items": { - "$ref": "#/definitions/example.ExaFileChunk" - } - }, - "fileMd5": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "filePath": { + "created_at": { "type": "string" }, "id": { "description": "涓婚敭ID", "type": "integer" }, - "isFinish": { - "type": "boolean" + "price": { + "description": "閲囪喘鍗曚环", + "type": "number" + }, + "productId": { + "description": "浜у搧id", + "type": "integer" + }, + "purchaseId": { + "description": "閲囪喘id", + "type": "integer" + }, + "remark": { + "description": "鎻忚堪", + "type": "string" + }, + "total": { + "description": "閲囪喘鎬讳环", + "type": "number" + }, + "updated_at": { + "type": "string" } } }, - "example.ExaFileChunk": { + "purchase.PurchaseType": { "type": "object", "properties": { - "exaFileID": { - "type": "integer" - }, - "fileChunkNumber": { - "type": "integer" - }, - "fileChunkPath": { + "created_at": { "type": "string" }, "id": { "description": "涓婚敭ID", "type": "integer" - } - } - }, - "example.ExaFileUploadAndDownload": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "key": { - "description": "缂栧彿", - "type": "string" }, "name": { - "description": "鏂囦欢鍚�", + "description": "閲囪喘绫诲瀷", "type": "string" }, - "tag": { - "description": "鏂囦欢鏍囩", - "type": "string" + "pin": { + "description": "鏄惁缃《", + "type": "boolean" }, - "url": { - "description": "鏂囦欢鍦板潃", + "sort": { + "description": "鎺掑簭", + "type": "integer" + }, + "updated_at": { "type": "string" } } }, - "request.AddMenuAuthorityInfo": { + "purchase.WholeDiscountType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-comments": { + "WholeDiscountTypeDiscount": "鐩存帴闄嶄环", + "WholeDiscountTypePercent": "鐧惧垎姣旈檷浠�" + }, + "x-enum-varnames": [ + "WholeDiscountTypePercent", + "WholeDiscountTypeDiscount" + ] + }, + "purchaserequest.AddPurchase": { "type": "object", "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" - }, - "menus": { + "productList": { "type": "array", "items": { - "$ref": "#/definitions/system.SysBaseMenu" + "$ref": "#/definitions/purchase.PurchaseProducts" } + }, + "purchase": { + "$ref": "#/definitions/purchaserequest.Purchase" } } }, - "request.CasbinInReceive": { + "purchaserequest.Purchase": { "type": "object", "properties": { - "authorityId": { - "description": "鏉冮檺id", + "contact": { + "description": "鑱旂郴浜�", + "type": "string" + }, + "deliveryDate": { + "description": "浜や粯鏃ユ湡", + "type": "string" + }, + "id": { + "description": "涓婚敭ID", "type": "integer" }, - "casbinInfos": { + "name": { + "description": "閲囪喘鍚嶇О", + "type": "string" + }, + "number": { + "description": "閲囪喘缂栧彿", + "type": "string" + }, + "phone": { + "description": "鑱旂郴浜虹數璇�", + "type": "string" + }, + "priceAdjustment": { + "description": "浠锋牸璋冩暣鍊�", + "type": "number" + }, + "priceAdjustmentType": { + "description": "浠锋牸璋冩暣绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/purchase.PriceAdjustmentType" + } + ] + }, + "purchaseTypeId": { + "description": "閲囪喘绫诲瀷id", + "type": "integer" + }, + "quantity": { + "description": "閲囪喘鏁伴噺", + "type": "number" + }, + "realTotalPrice": { + "description": "鏈�缁堜环鏍�", + "type": "number" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "signingDate": { + "description": "绛剧害鏃ユ湡", + "type": "string" + }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/purchase.OrderStatus" + } + ] + }, + "supplierId": { + "description": "渚涘簲鍟唅d", + "type": "integer" + }, + "totalPrice": { + "description": "浠风◣鍚堣", + "type": "number" + }, + "wholeDiscount": { + "description": "鏁村崟鎶樻墸鍊�", + "type": "number" + }, + "wholeDiscountType": { + "description": "鏁村崟鎶樻墸绫诲瀷", + "allOf": [ + { + "$ref": "#/definitions/purchase.WholeDiscountType" + } + ] + } + } + }, + "purchaserequest.PurchaseType": { + "type": "object", + "properties": { + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "name": { + "description": "閲囪喘绫诲瀷", + "type": "string" + }, + "pin": { + "description": "鏄惁缃《", + "type": "boolean" + }, + "sort": { + "description": "鎺掑簭", + "type": "integer" + } + } + }, + "purchaserequest.UpdatePurchase": { + "type": "object", + "properties": { + "productList": { "type": "array", "items": { - "$ref": "#/definitions/request.CasbinInfo" + "$ref": "#/definitions/purchase.PurchaseProducts" } - } - } - }, - "request.CasbinInfo": { - "type": "object", - "properties": { - "method": { - "description": "鏂规硶", - "type": "string" }, - "path": { - "description": "璺緞", - "type": "string" - } - } - }, - "request.ChangePasswordReq": { - "type": "object", - "properties": { - "newPassword": { - "description": "鏂板瘑鐮�", - "type": "string" - }, - "password": { - "description": "瀵嗙爜", - "type": "string" - } - } - }, - "request.Empty": { - "type": "object" - }, - "request.GetAuthorityId": { - "type": "object", - "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" + "purchase": { + "$ref": "#/definitions/purchaserequest.Purchase" } } }, @@ -7917,200 +3797,58 @@ } } }, - "request.InitDB": { + "request.Product": { "type": "object", - "required": [ - "dbName" - ], "properties": { - "dbName": { - "description": "鏁版嵁搴撳悕", + "categoryName": { "type": "string" }, - "dbPath": { - "description": "sqlite鏁版嵁搴撴枃浠惰矾寰�", + "deliveryTime": { + "type": "integer" + }, + "modelNumber": { "type": "string" }, - "dbType": { - "description": "鏁版嵁搴撶被鍨�", + "name": { "type": "string" }, - "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧�", + "number": { "type": "string" }, - "password": { - "description": "鏁版嵁搴撳瘑鐮�", + "purchasePrice": { + "type": "number" + }, + "shippingDuration": { + "type": "integer" + }, + "specifications": { "type": "string" }, - "port": { - "description": "鏁版嵁搴撹繛鎺ョ鍙�", + "supplier": { "type": "string" }, - "userName": { - "description": "鏁版嵁搴撶敤鎴峰悕", + "supplierId": { + "type": "integer" + }, + "supplierName": { + "type": "string" + }, + "supplierNumber": { + "type": "string" + }, + "unit": { "type": "string" } } }, - "request.Login": { + "request.ProductCreate": { "type": "object", "properties": { - "captcha": { - "description": "楠岃瘉鐮�", - "type": "string" - }, - "captchaId": { - "description": "楠岃瘉鐮両D", - "type": "string" - }, - "password": { - "description": "瀵嗙爜", - "type": "string" - }, - "username": { - "description": "鐢ㄦ埛鍚�", - "type": "string" - } - } - }, - "request.PageInfo": { - "type": "object", - "properties": { - "keyword": { - "description": "鍏抽敭瀛�", - "type": "string" - }, - "page": { - "description": "椤电爜", - "type": "integer" - }, - "pageSize": { - "description": "姣忛〉澶у皬", - "type": "integer" - } - } - }, - "request.Register": { - "type": "object", - "properties": { - "authorityId": { - "type": "string", - "example": "int 瑙掕壊id" - }, - "authorityIds": { - "type": "string", - "example": "[]uint 瑙掕壊id" - }, - "email": { - "type": "string", - "example": "鐢靛瓙閭" - }, - "enable": { - "type": "string", - "example": "int 鏄惁鍚敤" - }, - "headerImg": { - "type": "string", - "example": "澶村儚閾炬帴" - }, - "nickName": { - "type": "string", - "example": "鏄电О" - }, - "passWord": { - "type": "string", - "example": "瀵嗙爜" - }, - "phone": { - "type": "string", - "example": "鐢佃瘽鍙风爜" - }, - "userName": { - "type": "string", - "example": "鐢ㄦ埛鍚�" - } - } - }, - "request.RollBack": { - "type": "object", - "properties": { - "deleteTable": { - "description": "鏄惁鍒犻櫎琛�", - "type": "boolean" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - } - } - }, - "request.SearchApiParams": { - "type": "object", - "properties": { - "apiGroup": { - "description": "api缁�", - "type": "string" - }, - "desc": { - "description": "鎺掑簭鏂瑰紡:鍗囧簭false(榛樿)|闄嶅簭true", - "type": "boolean" - }, - "description": { - "description": "api涓枃鎻忚堪", - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "keyword": { - "description": "鍏抽敭瀛�", - "type": "string" - }, - "method": { - "description": "鏂规硶:鍒涘缓POST(榛樿)|鏌ョ湅GET|鏇存柊PUT|鍒犻櫎DELETE", - "type": "string" - }, - "orderKey": { - "description": "鎺掑簭", - "type": "string" - }, - "page": { - "description": "椤电爜", - "type": "integer" - }, - "pageSize": { - "description": "姣忛〉澶у皬", - "type": "integer" - }, - "path": { - "description": "api璺緞", - "type": "string" - } - } - }, - "request.SetUserAuth": { - "type": "object", - "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" - } - } - }, - "request.SetUserAuthorities": { - "type": "object", - "properties": { - "authorityIds": { - "description": "瑙掕壊ID", + "list": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/request.Product" } - }, - "id": { - "type": "integer" } } }, @@ -8136,103 +3874,6 @@ } } }, - "request.SysAuthorityBtnReq": { - "type": "object", - "properties": { - "authorityId": { - "type": "integer" - }, - "menuID": { - "type": "integer" - }, - "selected": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "request.SysAutoHistory": { - "type": "object", - "properties": { - "keyword": { - "description": "鍏抽敭瀛�", - "type": "string" - }, - "page": { - "description": "椤电爜", - "type": "integer" - }, - "pageSize": { - "description": "姣忛〉澶у皬", - "type": "integer" - } - } - }, - "response.Email": { - "type": "object", - "properties": { - "body": { - "description": "閭欢鍐呭", - "type": "string" - }, - "subject": { - "description": "閭欢鏍囬", - "type": "string" - }, - "to": { - "description": "閭欢鍙戦�佺粰璋�", - "type": "string" - } - } - }, - "response.ExaCustomerResponse": { - "type": "object", - "properties": { - "customer": { - "$ref": "#/definitions/example.ExaCustomer" - } - } - }, - "response.ExaFileResponse": { - "type": "object", - "properties": { - "file": { - "$ref": "#/definitions/example.ExaFileUploadAndDownload" - } - } - }, - "response.FilePathResponse": { - "type": "object", - "properties": { - "filePath": { - "type": "string" - } - } - }, - "response.FileResponse": { - "type": "object", - "properties": { - "file": { - "$ref": "#/definitions/example.ExaFile" - } - } - }, - "response.LoginResponse": { - "type": "object", - "properties": { - "expiresAt": { - "type": "integer" - }, - "token": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/system.SysUser" - } - } - }, "response.PageResult": { "type": "object", "properties": { @@ -8248,14 +3889,69 @@ } } }, - "response.PolicyPathResponse": { + "response.PurchaseProducts": { "type": "object", "properties": { - "paths": { + "amount": { + "description": "閲囪喘鏁伴噺", + "type": "number" + }, + "deliveryTime": { + "type": "integer" + }, + "modelNumber": { + "type": "string" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "price": { + "description": "閲囪喘鍗曚环", + "type": "number" + }, + "productId": { + "description": "浜у搧id", + "type": "integer" + }, + "productType": { + "type": "string" + }, + "purchaseId": { + "description": "閲囪喘id", + "type": "integer" + }, + "purchasePrice": { + "type": "number" + }, + "shippingDuration": { + "type": "integer" + }, + "specifications": { + "type": "string" + }, + "total": { + "description": "閲囪喘鎬讳环", + "type": "number" + }, + "unit": { + "type": "string" + } + } + }, + "response.PurchaseResponse": { + "type": "object", + "properties": { + "productList": { "type": "array", "items": { - "$ref": "#/definitions/request.CasbinInfo" + "$ref": "#/definitions/response.PurchaseProducts" } + }, + "purchase": { + "$ref": "#/definitions/purchase.Purchase" } } }, @@ -8271,742 +3967,6 @@ } } }, - "response.SysAPIListResponse": { - "type": "object", - "properties": { - "apis": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysApi" - } - } - } - }, - "response.SysAPIResponse": { - "type": "object", - "properties": { - "api": { - "$ref": "#/definitions/system.SysApi" - } - } - }, - "response.SysAuthorityBtnRes": { - "type": "object", - "properties": { - "selected": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "response.SysAuthorityCopyResponse": { - "type": "object", - "properties": { - "authority": { - "$ref": "#/definitions/system.SysAuthority" - }, - "oldAuthorityId": { - "description": "鏃ц鑹睮D", - "type": "integer" - } - } - }, - "response.SysAuthorityResponse": { - "type": "object", - "properties": { - "authority": { - "$ref": "#/definitions/system.SysAuthority" - } - } - }, - "response.SysBaseMenuResponse": { - "type": "object", - "properties": { - "menu": { - "$ref": "#/definitions/system.SysBaseMenu" - } - } - }, - "response.SysBaseMenusResponse": { - "type": "object", - "properties": { - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenu" - } - } - } - }, - "response.SysCaptchaResponse": { - "type": "object", - "properties": { - "captchaId": { - "type": "string" - }, - "captchaLength": { - "type": "integer" - }, - "openCaptcha": { - "type": "boolean" - }, - "picPath": { - "type": "string" - } - } - }, - "response.SysConfigResponse": { - "type": "object", - "properties": { - "config": { - "$ref": "#/definitions/config.Server" - } - } - }, - "response.SysMenusResponse": { - "type": "object", - "properties": { - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysMenu" - } - } - } - }, - "response.SysUserResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/system.SysUser" - } - } - }, - "srm_config.Email": { - "type": "object", - "properties": { - "from": { - "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", - "type": "string" - }, - "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", - "type": "string" - }, - "is-ssl": { - "description": "鏄惁SSL 鏄惁寮�鍚疭SL", - "type": "boolean" - }, - "nickname": { - "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", - "type": "string" - }, - "port": { - "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", - "type": "integer" - }, - "secret": { - "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", - "type": "string" - }, - "to": { - "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", - "type": "string" - } - } - }, - "system.AutoCodeStruct": { - "type": "object", - "properties": { - "abbreviation": { - "description": "Struct绠�绉�", - "type": "string" - }, - "autoCreateApiToSql": { - "description": "鏄惁鑷姩鍒涘缓api", - "type": "boolean" - }, - "autoCreateResource": { - "description": "鏄惁鑷姩鍒涘缓璧勬簮鏍囪瘑", - "type": "boolean" - }, - "autoMoveFile": { - "description": "鏄惁鑷姩绉诲姩鏂囦欢", - "type": "boolean" - }, - "businessDB": { - "description": "涓氬姟鏁版嵁搴�", - "type": "string" - }, - "description": { - "description": "Struct涓枃鍚嶇О", - "type": "string" - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/system.Field" - } - }, - "hasTimer": { - "type": "boolean" - }, - "humpPackageName": { - "description": "go鏂囦欢鍚嶇О", - "type": "string" - }, - "package": { - "type": "string" - }, - "packageName": { - "description": "鏂囦欢鍚嶇О", - "type": "string" - }, - "structName": { - "description": "Struct鍚嶇О", - "type": "string" - }, - "tableName": { - "description": "琛ㄥ悕", - "type": "string" - } - } - }, - "system.Field": { - "type": "object", - "properties": { - "clearable": { - "description": "鏄惁鍙竻绌�", - "type": "boolean" - }, - "columnName": { - "description": "鏁版嵁搴撳瓧娈�", - "type": "string" - }, - "comment": { - "description": "鏁版嵁搴撳瓧娈垫弿杩�", - "type": "string" - }, - "dataTypeLong": { - "description": "鏁版嵁搴撳瓧娈甸暱搴�", - "type": "string" - }, - "dictType": { - "description": "瀛楀吀", - "type": "string" - }, - "errorText": { - "description": "鏍¢獙澶辫触鏂囧瓧", - "type": "string" - }, - "fieldDesc": { - "description": "涓枃鍚�", - "type": "string" - }, - "fieldJson": { - "description": "FieldJson", - "type": "string" - }, - "fieldName": { - "description": "Field鍚�", - "type": "string" - }, - "fieldSearchType": { - "description": "鎼滅储鏉′欢", - "type": "string" - }, - "fieldType": { - "description": "Field鏁版嵁绫诲瀷", - "type": "string" - }, - "require": { - "description": "鏄惁蹇呭~", - "type": "boolean" - }, - "sort": { - "description": "鏄惁澧炲姞鎺掑簭", - "type": "boolean" - } - } - }, - "system.Meta": { - "type": "object", - "properties": { - "activeName": { - "type": "string" - }, - "closeTab": { - "description": "鑷姩鍏抽棴tab", - "type": "boolean" - }, - "defaultMenu": { - "description": "鏄惁鏄熀纭�璺敱锛堝紑鍙戜腑锛�", - "type": "boolean" - }, - "icon": { - "description": "鑿滃崟鍥炬爣", - "type": "string" - }, - "keepAlive": { - "description": "鏄惁缂撳瓨", - "type": "boolean" - }, - "title": { - "description": "鑿滃崟鍚�", - "type": "string" - } - } - }, - "system.SysApi": { - "type": "object", - "properties": { - "apiGroup": { - "description": "api缁�", - "type": "string" - }, - "description": { - "description": "api涓枃鎻忚堪", - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "method": { - "description": "鏂规硶:鍒涘缓POST(榛樿)|鏌ョ湅GET|鏇存柊PUT|鍒犻櫎DELETE", - "type": "string" - }, - "path": { - "description": "api璺緞", - "type": "string" - } - } - }, - "system.SysAuthority": { - "type": "object", - "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" - }, - "authorityName": { - "description": "瑙掕壊鍚�", - "type": "string" - }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysAuthority" - } - }, - "createdAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" - }, - "dataAuthorityId": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysAuthority" - } - }, - "defaultRouter": { - "description": "榛樿鑿滃崟(榛樿dashboard)", - "type": "string" - }, - "deletedAt": { - "type": "string" - }, - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenu" - } - }, - "parentId": { - "description": "鐖惰鑹睮D", - "type": "integer" - }, - "updatedAt": { - "description": "鏇存柊鏃堕棿", - "type": "string" - } - } - }, - "system.SysAutoCode": { - "type": "object", - "properties": { - "desc": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "label": { - "type": "string" - }, - "packageName": { - "type": "string" - } - } - }, - "system.SysBaseMenu": { - "type": "object", - "properties": { - "authoritys": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysAuthority" - } - }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenu" - } - }, - "component": { - "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", - "type": "string" - }, - "hidden": { - "description": "鏄惁鍦ㄥ垪琛ㄩ殣钘�", - "type": "boolean" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "menuBtn": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenuBtn" - } - }, - "meta": { - "description": "闄勫姞灞炴��", - "allOf": [ - { - "$ref": "#/definitions/system.Meta" - } - ] - }, - "name": { - "description": "璺敱name", - "type": "string" - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenuParameter" - } - }, - "parentId": { - "description": "鐖惰彍鍗旾D", - "type": "string" - }, - "path": { - "description": "璺敱path", - "type": "string" - }, - "sort": { - "description": "鎺掑簭鏍囪", - "type": "integer" - } - } - }, - "system.SysBaseMenuBtn": { - "type": "object", - "properties": { - "desc": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "name": { - "type": "string" - }, - "sysBaseMenuID": { - "type": "integer" - } - } - }, - "system.SysBaseMenuParameter": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "key": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑key", - "type": "string" - }, - "sysBaseMenuID": { - "type": "integer" - }, - "type": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query", - "type": "string" - }, - "value": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�", - "type": "string" - } - } - }, - "system.SysDictionary": { - "type": "object", - "properties": { - "desc": { - "description": "鎻忚堪", - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "name": { - "description": "瀛楀吀鍚嶏紙涓級", - "type": "string" - }, - "status": { - "description": "鐘舵��", - "type": "boolean" - }, - "sysDictionaryDetails": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysDictionaryDetail" - } - }, - "type": { - "description": "瀛楀吀鍚嶏紙鑻憋級", - "type": "string" - } - } - }, - "system.SysDictionaryDetail": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "label": { - "description": "灞曠ず鍊�", - "type": "string" - }, - "sort": { - "description": "鎺掑簭鏍囪", - "type": "integer" - }, - "status": { - "description": "鍚敤鐘舵��", - "type": "boolean" - }, - "sysDictionaryID": { - "description": "鍏宠仈鏍囪", - "type": "integer" - }, - "value": { - "description": "瀛楀吀鍊�", - "type": "integer" - } - } - }, - "system.SysMenu": { - "type": "object", - "properties": { - "authoritys": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysAuthority" - } - }, - "btns": { - "type": "object", - "additionalProperties": { - "type": "integer" - } - }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysMenu" - } - }, - "component": { - "description": "瀵瑰簲鍓嶇鏂囦欢璺緞", - "type": "string" - }, - "hidden": { - "description": "鏄惁鍦ㄥ垪琛ㄩ殣钘�", - "type": "boolean" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "menuBtn": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenuBtn" - } - }, - "menuId": { - "type": "string" - }, - "meta": { - "description": "闄勫姞灞炴��", - "allOf": [ - { - "$ref": "#/definitions/system.Meta" - } - ] - }, - "name": { - "description": "璺敱name", - "type": "string" - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenuParameter" - } - }, - "parentId": { - "description": "鐖惰彍鍗旾D", - "type": "string" - }, - "path": { - "description": "璺敱path", - "type": "string" - }, - "sort": { - "description": "鎺掑簭鏍囪", - "type": "integer" - } - } - }, - "system.SysOperationRecord": { - "type": "object", - "properties": { - "agent": { - "description": "浠g悊", - "type": "string" - }, - "body": { - "description": "璇锋眰Body", - "type": "string" - }, - "error_message": { - "description": "閿欒淇℃伅", - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "ip": { - "description": "璇锋眰ip", - "type": "string" - }, - "latency": { - "description": "寤惰繜", - "type": "string" - }, - "method": { - "description": "璇锋眰鏂规硶", - "type": "string" - }, - "path": { - "description": "璇锋眰璺緞", - "type": "string" - }, - "resp": { - "description": "鍝嶅簲Body", - "type": "string" - }, - "status": { - "description": "璇锋眰鐘舵��", - "type": "integer" - }, - "user": { - "$ref": "#/definitions/system.SysUser" - }, - "user_id": { - "description": "鐢ㄦ埛id", - "type": "integer" - } - } - }, - "system.SysUser": { - "type": "object", - "properties": { - "activeColor": { - "description": "娲昏穬棰滆壊", - "type": "string" - }, - "authorities": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysAuthority" - } - }, - "authority": { - "$ref": "#/definitions/system.SysAuthority" - }, - "authorityId": { - "description": "鐢ㄦ埛瑙掕壊ID", - "type": "integer" - }, - "baseColor": { - "description": "鍩虹棰滆壊", - "type": "string" - }, - "email": { - "description": "鐢ㄦ埛閭", - "type": "string" - }, - "enable": { - "description": "鐢ㄦ埛鏄惁琚喕缁� 1姝e父 2鍐荤粨", - "type": "integer" - }, - "headerImg": { - "description": "鐢ㄦ埛澶村儚", - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "nickName": { - "description": "鐢ㄦ埛鏄电О", - "type": "string" - }, - "phone": { - "description": "鐢ㄦ埛鎵嬫満鍙�", - "type": "string" - }, - "sideMode": { - "description": "鐢ㄦ埛渚ц竟涓婚", - "type": "string" - }, - "userName": { - "description": "鐢ㄦ埛鐧诲綍鍚�", - "type": "string" - }, - "uuid": { - "description": "鐢ㄦ埛UUID", - "type": "string" - } - } - }, "system.System": { "type": "object", "properties": { @@ -9018,11 +3978,8 @@ "test.Contract": { "type": "object", "properties": { - "fileContent": { - "type": "array", - "items": { - "type": "integer" - } + "created_at": { + "type": "string" }, "fileName": { "type": "string" @@ -9033,17 +3990,26 @@ }, "supplierID": { "type": "integer" + }, + "updated_at": { + "type": "string" } } }, "test.Industry": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" }, "name": { + "type": "string" + }, + "updated_at": { "type": "string" } } @@ -9051,6 +4017,9 @@ "test.Member": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" @@ -9058,61 +4027,13 @@ "nickname": { "type": "string" }, + "updated_at": { + "type": "string" + }, "userName": { "type": "string" }, "uuid": { - "type": "string" - } - } - }, - "test.Product": { - "type": "object", - "properties": { - "deliveryTime": { - "type": "integer" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "maximumStock": { - "type": "integer" - }, - "minimumStock": { - "type": "integer" - }, - "modelNumber": { - "type": "string" - }, - "name": { - "type": "string" - }, - "number": { - "type": "string" - }, - "productType": { - "type": "string" - }, - "purchasePrice": { - "type": "number" - }, - "remark": { - "type": "string" - }, - "shippingDuration": { - "type": "integer" - }, - "specifications": { - "type": "string" - }, - "supplier": { - "$ref": "#/definitions/test.Supplier" - }, - "supplierId": { - "type": "integer" - }, - "unit": { "type": "string" } } @@ -9130,6 +4051,12 @@ "type": "string" }, "contact": { + "type": "string" + }, + "contract": { + "$ref": "#/definitions/test.Contract" + }, + "created_at": { "type": "string" }, "detailAddress": { @@ -9166,7 +4093,67 @@ "supplierType": { "type": "string" }, + "updated_at": { + "type": "string" + }, "url": { + "type": "string" + } + } + }, + "test.SupplierMaterial": { + "type": "object", + "properties": { + "categoryName": { + "description": "浜у搧绫诲埆鍚嶇О", + "type": "string" + }, + "created_at": { + "type": "string" + }, + "deliveryTime": { + "description": "渚涜揣鏃堕暱", + "type": "integer" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "maximumStock": { + "type": "integer" + }, + "minimumStock": { + "type": "integer" + }, + "modelNumber": { + "type": "string" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "purchasePrice": { + "type": "number" + }, + "shippingDuration": { + "description": "鐗╂祦鏃堕暱", + "type": "integer" + }, + "specifications": { + "type": "string" + }, + "supplier": { + "$ref": "#/definitions/test.Supplier" + }, + "supplierId": { + "type": "integer" + }, + "unit": { + "type": "string" + }, + "updated_at": { "type": "string" } } @@ -9174,12 +4161,18 @@ "test.SupplierType": { "type": "object", "properties": { + "created_at": { + "type": "string" + }, "id": { "description": "涓婚敭ID", "type": "integer" }, "name": { "type": "string" + }, + "updated_at": { + "type": "string" } } } -- Gitblit v1.8.0