From f9ce7300c4ce1673d06a052e43cb462f8a69c13c Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 02 十一月 2023 14:30:19 +0800 Subject: [PATCH] 优化重构2 --- api/v1/test/enter.go | 1 service/test/member.go | 76 router/test/enter.go | 1 model/test/request/member.go | 14 docs/swagger.yaml | 3789 ------------- docs/docs.go | 6291 ---------------------- api/v1/system/sys_system.go | 2 docs/swagger.json | 6291 ---------------------- service/test/enter.go | 1 model/test/member.go | 18 api/v1/test/member.go | 235 router/test/member.go | 27 initialize/router.go | 1 initialize/gorm.go | 25 14 files changed, 396 insertions(+), 16,376 deletions(-) diff --git a/api/v1/system/sys_system.go b/api/v1/system/sys_system.go index e76a5b7..7df1148 100644 --- a/api/v1/system/sys_system.go +++ b/api/v1/system/sys_system.go @@ -17,7 +17,7 @@ // @Summary 鑾峰彇閰嶇疆鏂囦欢鍐呭 // @Security ApiKeyAuth // @Produce application/json -// @Success 200 {object} response.Response{data=systemRes.SysConfigResponse,msg=string} "鑾峰彇閰嶇疆鏂囦欢鍐呭,杩斿洖鍖呮嫭绯荤粺閰嶇疆" +// @Success 200 {object} response.Response{data=system.System,msg=string} "鑾峰彇閰嶇疆鏂囦欢鍐呭,杩斿洖鍖呮嫭绯荤粺閰嶇疆" // @Router /system/getSystemConfig [post] func (s *SystemApi) GetSystemConfig(c *gin.Context) { config, err := systemConfigService.GetSystemConfig() diff --git a/api/v1/test/enter.go b/api/v1/test/enter.go index b73c8f6..b0f6dc2 100644 --- a/api/v1/test/enter.go +++ b/api/v1/test/enter.go @@ -6,4 +6,5 @@ SupplierApi ContractApi ProductApi + MemberApi } diff --git a/api/v1/test/member.go b/api/v1/test/member.go new file mode 100644 index 0000000..f0af64d --- /dev/null +++ b/api/v1/test/member.go @@ -0,0 +1,235 @@ +package test + +import ( + "github.com/gin-gonic/gin" + "go.uber.org/zap" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + "srm/global" + "srm/model/common/request" + "srm/model/common/response" + "srm/model/test" + testReq "srm/model/test/request" + "srm/proto/user" + "srm/service" +) + +type MemberApi struct { +} + +var mService = service.ServiceGroupApp.TestServiceGroup.MemberService + +// CreateMember 鍒涘缓Member +// @Tags Member +// @Summary 鍒涘缓Member +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body test.Member true "鍒涘缓Member" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" +// @Router /m/createMember [post] +func (mApi *MemberApi) CreateMember(c *gin.Context) { + var m test.Member + err := c.ShouldBindJSON(&m) + if err != nil { + response.FailWithMessage(err.Error(), c) + return + } + if err := mService.CreateMember(&m); err != nil { + global.GVA_LOG.Error("鍒涘缓澶辫触!", zap.Error(err)) + response.FailWithMessage("鍒涘缓澶辫触", c) + } else { + response.OkWithMessage("鍒涘缓鎴愬姛", c) + } +} + +// DeleteMember 鍒犻櫎Member +// @Tags Member +// @Summary 鍒犻櫎Member +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body test.Member true "鍒犻櫎Member" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}" +// @Router /m/deleteMember [delete] +func (mApi *MemberApi) DeleteMember(c *gin.Context) { + var m test.Member + err := c.ShouldBindJSON(&m) + if err != nil { + response.FailWithMessage(err.Error(), c) + return + } + if err := mService.DeleteMember(m); err != nil { + global.GVA_LOG.Error("鍒犻櫎澶辫触!", zap.Error(err)) + response.FailWithMessage("鍒犻櫎澶辫触", c) + } else { + response.OkWithMessage("鍒犻櫎鎴愬姛", c) + } +} + +// DeleteMemberByIds 鎵归噺鍒犻櫎Member +// @Tags Member +// @Summary 鎵归噺鍒犻櫎Member +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body request.IdsReq true "鎵归噺鍒犻櫎Member" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}" +// @Router /m/deleteMemberByIds [delete] +func (mApi *MemberApi) DeleteMemberByIds(c *gin.Context) { + var IDS request.IdsReq + err := c.ShouldBindJSON(&IDS) + if err != nil { + response.FailWithMessage(err.Error(), c) + return + } + if err := mService.DeleteMemberByIds(IDS); err != nil { + global.GVA_LOG.Error("鎵归噺鍒犻櫎澶辫触!", zap.Error(err)) + response.FailWithMessage("鎵归噺鍒犻櫎澶辫触", c) + } else { + response.OkWithMessage("鎵归噺鍒犻櫎鎴愬姛", c) + } +} + +// UpdateMember 鏇存柊Member +// @Tags Member +// @Summary 鏇存柊Member +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body test.Member true "鏇存柊Member" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}" +// @Router /m/updateMember [put] +func (mApi *MemberApi) UpdateMember(c *gin.Context) { + var m test.Member + err := c.ShouldBindJSON(&m) + if err != nil { + response.FailWithMessage(err.Error(), c) + return + } + if err := mService.UpdateMember(m); err != nil { + global.GVA_LOG.Error("鏇存柊澶辫触!", zap.Error(err)) + response.FailWithMessage("鏇存柊澶辫触", c) + } else { + response.OkWithMessage("鏇存柊鎴愬姛", c) + } +} + +// FindMember 鐢╥d鏌ヨMember +// @Tags Member +// @Summary 鐢╥d鏌ヨMember +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data query test.Member true "鐢╥d鏌ヨMember" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}" +// @Router /m/findMember [get] +func (mApi *MemberApi) FindMember(c *gin.Context) { + var m test.Member + err := c.ShouldBindQuery(&m) + if err != nil { + response.FailWithMessage(err.Error(), c) + return + } + if rem, err := mService.GetMember(m.ID); err != nil { + global.GVA_LOG.Error("鏌ヨ澶辫触!", zap.Error(err)) + response.FailWithMessage("鏌ヨ澶辫触", c) + } else { + response.OkWithData(gin.H{"rem": rem}, c) + } +} + +// GetMemberList 鍒嗛〉鑾峰彇Member鍒楄〃 +// @Tags Member +// @Summary 鍒嗛〉鑾峰彇Member鍒楄〃 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data query testReq.MemberSearch true "鍒嗛〉鑾峰彇Member鍒楄〃" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" +// @Router /m/getMemberList [get] +func (mApi *MemberApi) GetMemberList(c *gin.Context) { + var pageInfo testReq.MemberSearch + err := c.ShouldBindQuery(&pageInfo) + if err != nil { + response.FailWithMessage(err.Error(), c) + return + } + if list, total, err := mService.GetMemberInfoList(pageInfo); err != nil { + global.GVA_LOG.Error("鑾峰彇澶辫触!", zap.Error(err)) + response.FailWithMessage("鑾峰彇澶辫触", c) + } else { + response.OkWithDetailed(response.PageResult{ + List: list, + Total: total, + Page: pageInfo.Page, + PageSize: pageInfo.PageSize, + }, "鑾峰彇鎴愬姛", c) + } +} + +var ( + userConn *grpc.ClientConn +) + +func InitUserConn() { + var err error + userConn, err = grpc.Dial(global.GVA_CONFIG.System.GrpcAdminUrl, grpc.WithTransportCredentials(insecure.NewCredentials())) + if err != nil { + //logx.Errorf("grpc dial user service error: %v", err.Error()) + return + } +} + +func CloseUserConn() { + if userConn != nil { + userConn.Close() + } +} + +// GetMemberListFromGrpc 鍒嗛〉鑾峰彇Member鍒楄〃 +// @Tags Member +// @Summary 鍒嗛〉鑾峰彇Member鍒楄〃 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data query testReq.MemberSearch true "鍒嗛〉鑾峰彇Member鍒楄〃" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" +// @Router /m/getMemberListFromGrpc [get] +func (mApi *MemberApi) GetMemberListFromGrpc(c *gin.Context) { + var pageInfo testReq.MemberSearch + err := c.ShouldBindQuery(&pageInfo) + if err != nil { + response.FailWithMessage(err.Error(), c) + return + } + InitUserConn() + defer CloseUserConn() + + cli := user.NewUserServiceClient(userConn) + var users []*user.User + getMemberListResponse, err := cli.SyncUser(c, &user.UserRequest{Users: users}) + + rawMemberList := getMemberListResponse.List + memberList := make([]*test.Member, len(rawMemberList)) + + for i, member := range rawMemberList { + memberList[i] = &test.Member{ + Uuid: member.Uuid, + UserName: member.Username, + Nickname: member.Nickname, + } + } + + if err != nil || len(memberList) == 0 { + global.GVA_LOG.Error("鑾峰彇澶辫触!", zap.Error(err)) + response.FailWithMessage("鑾峰彇澶辫触", c) + } else { + response.OkWithDetailed(response.PageResult{ + List: memberList, + Total: int64(len(memberList)), + Page: pageInfo.Page, + PageSize: pageInfo.PageSize, + }, "鑾峰彇鎴愬姛", c) + } +} diff --git a/docs/docs.go b/docs/docs.go index faca9b4..9706af8 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": [ @@ -2185,653 +421,6 @@ } } }, - "/customer/customer": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaCustomer" - ], - "summary": "鑾峰彇鍗曚竴瀹㈡埛淇℃伅", - "parameters": [ - { - "type": "string", - "name": "created_at", - "in": "query" - }, - { - "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" - }, - { - "type": "string", - "name": "updated_at", - "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" - } - } - } - ] - } - } - } - } - }, "/i/createIndustry": { "post": { "security": [ @@ -3107,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" - } - } - } - ] } } } @@ -3611,466 +1084,6 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", "schema": { "type": "string" - } - } - } - } - }, - "/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" - } - } - } - ] } } } @@ -5056,48 +2069,6 @@ } } }, - "/purchase/qualityTest": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "QualityInspect" - ], - "summary": "QualityTest", - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, "/purchase/submit/{id}": { "post": { "security": [ @@ -5884,1101 +2855,6 @@ } } }, - "/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", - "name": "created_at", - "in": "query" - }, - { - "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" - }, - { - "type": "string", - "name": "updated_at", - "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", - "name": "created_at", - "in": "query" - }, - { - "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" - }, - { - "type": "string", - "name": "updated_at", - "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": "string", - "name": "created_at", - "in": "query" - }, - { - "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": "string", - "name": "updated_at", - "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": "string", - "name": "created_at", - "in": "query" - }, - { - "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": "string", - "name": "updated_at", - "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", - "name": "created_at", - "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": "string", - "name": "updated_at", - "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", - "name": "created_at", - "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": "string", - "name": "updated_at", - "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" - } - } - } - ] - } - } - } - } - }, "/system/getServerInfo": { "post": { "security": [ @@ -7045,7 +2921,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.SysConfigResponse" + "$ref": "#/definitions/system.System" }, "msg": { "type": "string" @@ -7140,604 +3016,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": { @@ -7768,110 +3049,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" } } @@ -8096,76 +3273,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": [ @@ -8179,26 +3289,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" @@ -8217,26 +3307,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" + } + ] } } }, @@ -8405,52 +3488,6 @@ } } }, - "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" - } - } - }, "config.Zap": { "type": "object", "properties": { @@ -8488,136 +3525,6 @@ }, "stacktrace-key": { "description": "鏍堝悕", - "type": "string" - } - } - }, - "example.ExaCustomer": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "customerName": { - "description": "瀹㈡埛鍚�", - "type": "string" - }, - "customerPhoneData": { - "description": "瀹㈡埛鎵嬫満鍙�", - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "sysUser": { - "description": "绠$悊璇︽儏", - "allOf": [ - { - "$ref": "#/definitions/system.SysUser" - } - ] - }, - "sysUserAuthorityID": { - "description": "绠$悊瑙掕壊ID", - "type": "integer" - }, - "sysUserId": { - "description": "绠$悊ID", - "type": "integer" - }, - "updated_at": { - "type": "string" - } - } - }, - "example.ExaFile": { - "type": "object", - "properties": { - "chunkTotal": { - "type": "integer" - }, - "created_at": { - "type": "string" - }, - "exaFileChunk": { - "type": "array", - "items": { - "$ref": "#/definitions/example.ExaFileChunk" - } - }, - "fileMd5": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "filePath": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "isFinish": { - "type": "boolean" - }, - "updated_at": { - "type": "string" - } - } - }, - "example.ExaFileChunk": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "exaFileID": { - "type": "integer" - }, - "fileChunkNumber": { - "type": "integer" - }, - "fileChunkPath": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "updated_at": { - "type": "string" - } - } - }, - "example.ExaFileUploadAndDownload": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "key": { - "description": "缂栧彿", - "type": "string" - }, - "name": { - "description": "鏂囦欢鍚�", - "type": "string" - }, - "tag": { - "description": "鏂囦欢鏍囩", - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "url": { - "description": "鏂囦欢鍦板潃", "type": "string" } } @@ -9018,83 +3925,6 @@ } } }, - "request.AddMenuAuthorityInfo": { - "type": "object", - "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" - }, - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenu" - } - } - } - }, - "request.CasbinInReceive": { - "type": "object", - "properties": { - "authorityId": { - "description": "鏉冮檺id", - "type": "integer" - }, - "casbinInfos": { - "type": "array", - "items": { - "$ref": "#/definitions/request.CasbinInfo" - } - } - } - }, - "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" - } - } - }, - "request.GetById": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" - } - } - }, "request.IdsReq": { "type": "object", "properties": { @@ -9117,80 +3947,6 @@ } } }, - "request.InitDB": { - "type": "object", - "required": [ - "dbName" - ], - "properties": { - "dbName": { - "description": "鏁版嵁搴撳悕", - "type": "string" - }, - "dbPath": { - "description": "sqlite鏁版嵁搴撴枃浠惰矾寰�", - "type": "string" - }, - "dbType": { - "description": "鏁版嵁搴撶被鍨�", - "type": "string" - }, - "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧�", - "type": "string" - }, - "password": { - "description": "鏁版嵁搴撳瘑鐮�", - "type": "string" - }, - "port": { - "description": "鏁版嵁搴撹繛鎺ョ鍙�", - "type": "string" - }, - "userName": { - "description": "鏁版嵁搴撶敤鎴峰悕", - "type": "string" - } - } - }, - "request.Login": { - "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.ProductCreate": { "type": "object", "properties": { @@ -9199,135 +3955,6 @@ "items": { "$ref": "#/definitions/test.Product" } - } - } - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "request.SetUserAuth": { - "type": "object", - "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" - } - } - }, - "request.SetUserAuthorities": { - "type": "object", - "properties": { - "authorityIds": { - "description": "瑙掕壊ID", - "type": "array", - "items": { - "type": "integer" - } - }, - "id": { - "type": "integer" } } }, @@ -9353,103 +3980,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": { @@ -9462,17 +3992,6 @@ }, "total": { "type": "integer" - } - } - }, - "response.PolicyPathResponse": { - "type": "object", - "properties": { - "paths": { - "type": "array", - "items": { - "$ref": "#/definitions/request.CasbinInfo" - } } } }, @@ -9550,802 +4069,6 @@ }, "data": {}, "msg": { - "type": "string" - } - } - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "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": { - "created_at": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "label": { - "type": "string" - }, - "packageName": { - "type": "string" - }, - "updated_at": { - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysBaseMenuBtn": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "name": { - "type": "string" - }, - "sysBaseMenuID": { - "type": "integer" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysBaseMenuParameter": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "key": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑key", - "type": "string" - }, - "sysBaseMenuID": { - "type": "integer" - }, - "type": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query", - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "value": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�", - "type": "string" - } - } - }, - "system.SysDictionary": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysDictionaryDetail": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "label": { - "description": "灞曠ず鍊�", - "type": "string" - }, - "sort": { - "description": "鎺掑簭鏍囪", - "type": "integer" - }, - "status": { - "description": "鍚敤鐘舵��", - "type": "boolean" - }, - "sysDictionaryID": { - "description": "鍏宠仈鏍囪", - "type": "integer" - }, - "updated_at": { - "type": "string" - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysOperationRecord": { - "type": "object", - "properties": { - "agent": { - "description": "浠g悊", - "type": "string" - }, - "body": { - "description": "璇锋眰Body", - "type": "string" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - }, - "userName": { - "description": "鐢ㄦ埛鐧诲綍鍚�", - "type": "string" - }, - "uuid": { - "description": "鐢ㄦ埛UUID", "type": "string" } } diff --git a/docs/swagger.json b/docs/swagger.json index 4779ce3..06dd49f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -7,1770 +7,6 @@ "version": "0.0.1" }, "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": [ @@ -2176,653 +412,6 @@ } } }, - "/customer/customer": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "ExaCustomer" - ], - "summary": "鑾峰彇鍗曚竴瀹㈡埛淇℃伅", - "parameters": [ - { - "type": "string", - "name": "created_at", - "in": "query" - }, - { - "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" - }, - { - "type": "string", - "name": "updated_at", - "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" - } - } - } - ] - } - } - } - } - }, "/i/createIndustry": { "post": { "security": [ @@ -3098,122 +687,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" - } - } - } - ] } } } @@ -3602,466 +1075,6 @@ "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", "schema": { "type": "string" - } - } - } - } - }, - "/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" - } - } - } - ] } } } @@ -5047,48 +2060,6 @@ } } }, - "/purchase/qualityTest": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "QualityInspect" - ], - "summary": "QualityTest", - "responses": { - "200": { - "description": "鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/response.PageResult" - }, - "msg": { - "type": "string" - } - } - } - ] - } - } - } - } - }, "/purchase/submit/{id}": { "post": { "security": [ @@ -5875,1101 +2846,6 @@ } } }, - "/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", - "name": "created_at", - "in": "query" - }, - { - "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" - }, - { - "type": "string", - "name": "updated_at", - "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", - "name": "created_at", - "in": "query" - }, - { - "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" - }, - { - "type": "string", - "name": "updated_at", - "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": "string", - "name": "created_at", - "in": "query" - }, - { - "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": "string", - "name": "updated_at", - "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": "string", - "name": "created_at", - "in": "query" - }, - { - "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": "string", - "name": "updated_at", - "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", - "name": "created_at", - "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": "string", - "name": "updated_at", - "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", - "name": "created_at", - "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": "string", - "name": "updated_at", - "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" - } - } - } - ] - } - } - } - } - }, "/system/getServerInfo": { "post": { "security": [ @@ -7036,7 +2912,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.SysConfigResponse" + "$ref": "#/definitions/system.System" }, "msg": { "type": "string" @@ -7131,604 +3007,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": { @@ -7759,110 +3040,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" } } @@ -8087,76 +3264,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": [ @@ -8170,26 +3280,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" @@ -8208,26 +3298,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" + } + ] } } }, @@ -8396,52 +3479,6 @@ } } }, - "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" - } - } - }, "config.Zap": { "type": "object", "properties": { @@ -8479,136 +3516,6 @@ }, "stacktrace-key": { "description": "鏍堝悕", - "type": "string" - } - } - }, - "example.ExaCustomer": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "customerName": { - "description": "瀹㈡埛鍚�", - "type": "string" - }, - "customerPhoneData": { - "description": "瀹㈡埛鎵嬫満鍙�", - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "sysUser": { - "description": "绠$悊璇︽儏", - "allOf": [ - { - "$ref": "#/definitions/system.SysUser" - } - ] - }, - "sysUserAuthorityID": { - "description": "绠$悊瑙掕壊ID", - "type": "integer" - }, - "sysUserId": { - "description": "绠$悊ID", - "type": "integer" - }, - "updated_at": { - "type": "string" - } - } - }, - "example.ExaFile": { - "type": "object", - "properties": { - "chunkTotal": { - "type": "integer" - }, - "created_at": { - "type": "string" - }, - "exaFileChunk": { - "type": "array", - "items": { - "$ref": "#/definitions/example.ExaFileChunk" - } - }, - "fileMd5": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "filePath": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "isFinish": { - "type": "boolean" - }, - "updated_at": { - "type": "string" - } - } - }, - "example.ExaFileChunk": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "exaFileID": { - "type": "integer" - }, - "fileChunkNumber": { - "type": "integer" - }, - "fileChunkPath": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "updated_at": { - "type": "string" - } - } - }, - "example.ExaFileUploadAndDownload": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "key": { - "description": "缂栧彿", - "type": "string" - }, - "name": { - "description": "鏂囦欢鍚�", - "type": "string" - }, - "tag": { - "description": "鏂囦欢鏍囩", - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "url": { - "description": "鏂囦欢鍦板潃", "type": "string" } } @@ -9009,83 +3916,6 @@ } } }, - "request.AddMenuAuthorityInfo": { - "type": "object", - "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" - }, - "menus": { - "type": "array", - "items": { - "$ref": "#/definitions/system.SysBaseMenu" - } - } - } - }, - "request.CasbinInReceive": { - "type": "object", - "properties": { - "authorityId": { - "description": "鏉冮檺id", - "type": "integer" - }, - "casbinInfos": { - "type": "array", - "items": { - "$ref": "#/definitions/request.CasbinInfo" - } - } - } - }, - "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" - } - } - }, - "request.GetById": { - "type": "object", - "properties": { - "id": { - "description": "涓婚敭ID", - "type": "integer" - } - } - }, "request.IdsReq": { "type": "object", "properties": { @@ -9108,80 +3938,6 @@ } } }, - "request.InitDB": { - "type": "object", - "required": [ - "dbName" - ], - "properties": { - "dbName": { - "description": "鏁版嵁搴撳悕", - "type": "string" - }, - "dbPath": { - "description": "sqlite鏁版嵁搴撴枃浠惰矾寰�", - "type": "string" - }, - "dbType": { - "description": "鏁版嵁搴撶被鍨�", - "type": "string" - }, - "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧�", - "type": "string" - }, - "password": { - "description": "鏁版嵁搴撳瘑鐮�", - "type": "string" - }, - "port": { - "description": "鏁版嵁搴撹繛鎺ョ鍙�", - "type": "string" - }, - "userName": { - "description": "鏁版嵁搴撶敤鎴峰悕", - "type": "string" - } - } - }, - "request.Login": { - "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.ProductCreate": { "type": "object", "properties": { @@ -9190,135 +3946,6 @@ "items": { "$ref": "#/definitions/test.Product" } - } - } - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "request.SetUserAuth": { - "type": "object", - "properties": { - "authorityId": { - "description": "瑙掕壊ID", - "type": "integer" - } - } - }, - "request.SetUserAuthorities": { - "type": "object", - "properties": { - "authorityIds": { - "description": "瑙掕壊ID", - "type": "array", - "items": { - "type": "integer" - } - }, - "id": { - "type": "integer" } } }, @@ -9344,103 +3971,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": { @@ -9453,17 +3983,6 @@ }, "total": { "type": "integer" - } - } - }, - "response.PolicyPathResponse": { - "type": "object", - "properties": { - "paths": { - "type": "array", - "items": { - "$ref": "#/definitions/request.CasbinInfo" - } } } }, @@ -9541,802 +4060,6 @@ }, "data": {}, "msg": { - "type": "string" - } - } - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "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": { - "created_at": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "label": { - "type": "string" - }, - "packageName": { - "type": "string" - }, - "updated_at": { - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysBaseMenuBtn": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "name": { - "type": "string" - }, - "sysBaseMenuID": { - "type": "integer" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysBaseMenuParameter": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "key": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑key", - "type": "string" - }, - "sysBaseMenuID": { - "type": "integer" - }, - "type": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query", - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "value": { - "description": "鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊�", - "type": "string" - } - } - }, - "system.SysDictionary": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysDictionaryDetail": { - "type": "object", - "properties": { - "created_at": { - "type": "string" - }, - "id": { - "description": "涓婚敭ID", - "type": "integer" - }, - "label": { - "description": "灞曠ず鍊�", - "type": "string" - }, - "sort": { - "description": "鎺掑簭鏍囪", - "type": "integer" - }, - "status": { - "description": "鍚敤鐘舵��", - "type": "boolean" - }, - "sysDictionaryID": { - "description": "鍏宠仈鏍囪", - "type": "integer" - }, - "updated_at": { - "type": "string" - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - } - } - }, - "system.SysOperationRecord": { - "type": "object", - "properties": { - "agent": { - "description": "浠g悊", - "type": "string" - }, - "body": { - "description": "璇锋眰Body", - "type": "string" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - }, - "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" - }, - "created_at": { - "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" - }, - "updated_at": { - "type": "string" - }, - "userName": { - "description": "鐢ㄦ埛鐧诲綍鍚�", - "type": "string" - }, - "uuid": { - "description": "鐢ㄦ埛UUID", "type": "string" } } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 50a0f2c..5610a5e 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,71 +1,4 @@ definitions: - config.AliyunOSS: - 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 - type: object - config.Autocode: - 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 - type: object - config.AwsS3: - 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 - type: object config.CORS: properties: mode: @@ -86,78 +19,6 @@ allow-origin: type: string expose-headers: - type: string - type: object - config.Captcha: - 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 - type: object - config.Detail: - properties: - compareField: - description: 闇�瑕佹瘮杈冩椂闂寸殑瀛楁 - type: string - interval: - description: 鏃堕棿闂撮殧 - type: string - tableName: - description: 闇�瑕佹竻鐞嗙殑琛ㄥ悕 - type: string - type: object - config.Excel: - properties: - dir: - type: string - type: object - config.HuaWeiObs: - properties: - access-key: - type: string - bucket: - type: string - endpoint: - type: string - path: - type: string - secret-key: - type: string - type: object - config.JWT: - properties: - buffer-time: - description: 缂撳啿鏃堕棿 - type: string - expires-time: - description: 杩囨湡鏃堕棿 - type: string - issuer: - description: 绛惧彂鑰� - type: string - signing-key: - description: jwt绛惧悕 - type: string - type: object - config.Local: - properties: - path: - description: 鏈湴鏂囦欢璁块棶璺緞 - type: string - store-path: - description: 鏈湴鏂囦欢瀛樺偍璺緞 type: string type: object config.Mssql: @@ -320,54 +181,8 @@ description: 鏁版嵁搴撳瘑鐮� type: string type: object - config.Qiniu: - 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 - type: object - config.Redis: - properties: - addr: - description: 鏈嶅姟鍣ㄥ湴鍧�:绔彛 - type: string - db: - description: redis鐨勫摢涓暟鎹簱 - type: integer - password: - description: 瀵嗙爜 - type: string - type: object config.Server: properties: - aliyun-oss: - $ref: '#/definitions/config.AliyunOSS' - autocode: - allOf: - - $ref: '#/definitions/config.Autocode' - description: auto - aws-s3: - $ref: '#/definitions/config.AwsS3' - captcha: - $ref: '#/definitions/config.Captcha' cors: allOf: - $ref: '#/definitions/config.CORS' @@ -376,18 +191,6 @@ items: $ref: '#/definitions/config.SpecializedDB' type: array - email: - $ref: '#/definitions/srm_config.Email' - excel: - $ref: '#/definitions/config.Excel' - hua-wei-obs: - $ref: '#/definitions/config.HuaWeiObs' - jwt: - $ref: '#/definitions/config.JWT' - local: - allOf: - - $ref: '#/definitions/config.Local' - description: oss mssql: $ref: '#/definitions/config.Mssql' mysql: @@ -398,20 +201,14 @@ $ref: '#/definitions/config.Oracle' 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' + allOf: + - $ref: '#/definitions/config.Zap' + description: JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"` type: object config.SpecializedDB: properties: @@ -532,37 +329,6 @@ description: 浣跨敤redis type: boolean type: object - config.TencentCOS: - properties: - base-url: - type: string - bucket: - type: string - path-prefix: - type: string - region: - type: string - secret-id: - type: string - secret-key: - type: string - type: object - config.Timer: - properties: - detail: - items: - $ref: '#/definitions/config.Detail' - type: array - spec: - description: CRON琛ㄨ揪寮� - type: string - start: - description: 鏄惁鍚敤 - type: boolean - with_seconds: - description: 鏄惁绮剧‘鍒扮 - type: boolean - type: object config.Zap: properties: director: @@ -591,94 +357,6 @@ type: boolean stacktrace-key: description: 鏍堝悕 - type: string - type: object - example.ExaCustomer: - properties: - created_at: - type: string - customerName: - description: 瀹㈡埛鍚� - type: string - customerPhoneData: - description: 瀹㈡埛鎵嬫満鍙� - type: string - id: - description: 涓婚敭ID - type: integer - sysUser: - allOf: - - $ref: '#/definitions/system.SysUser' - description: 绠$悊璇︽儏 - sysUserAuthorityID: - description: 绠$悊瑙掕壊ID - type: integer - sysUserId: - description: 绠$悊ID - type: integer - updated_at: - type: string - type: object - example.ExaFile: - properties: - chunkTotal: - type: integer - created_at: - type: string - exaFileChunk: - items: - $ref: '#/definitions/example.ExaFileChunk' - type: array - fileMd5: - type: string - fileName: - type: string - filePath: - type: string - id: - description: 涓婚敭ID - type: integer - isFinish: - type: boolean - updated_at: - type: string - type: object - example.ExaFileChunk: - properties: - created_at: - type: string - exaFileID: - type: integer - fileChunkNumber: - type: integer - fileChunkPath: - type: string - id: - description: 涓婚敭ID - type: integer - updated_at: - type: string - type: object - example.ExaFileUploadAndDownload: - properties: - created_at: - type: string - id: - description: 涓婚敭ID - type: integer - key: - description: 缂栧彿 - type: string - name: - description: 鏂囦欢鍚� - type: string - tag: - description: 鏂囦欢鏍囩 - type: string - updated_at: - type: string - url: - description: 鏂囦欢鍦板潃 type: string type: object purchase.OrderStatus: @@ -958,58 +636,6 @@ purchase: $ref: '#/definitions/purchaserequest.Purchase' type: object - request.AddMenuAuthorityInfo: - properties: - authorityId: - description: 瑙掕壊ID - type: integer - menus: - items: - $ref: '#/definitions/system.SysBaseMenu' - type: array - type: object - request.CasbinInReceive: - properties: - authorityId: - description: 鏉冮檺id - type: integer - casbinInfos: - items: - $ref: '#/definitions/request.CasbinInfo' - type: array - type: object - request.CasbinInfo: - properties: - method: - description: 鏂规硶 - type: string - path: - description: 璺緞 - type: string - type: object - request.ChangePasswordReq: - properties: - newPassword: - description: 鏂板瘑鐮� - type: string - password: - description: 瀵嗙爜 - type: string - type: object - request.Empty: - type: object - request.GetAuthorityId: - properties: - authorityId: - description: 瑙掕壊ID - type: integer - type: object - request.GetById: - properties: - id: - description: 涓婚敭ID - type: integer - type: object request.IdsReq: properties: ids: @@ -1024,157 +650,12 @@ $ref: '#/definitions/test.Industry' type: array type: object - request.InitDB: - properties: - dbName: - description: 鏁版嵁搴撳悕 - type: string - dbPath: - description: sqlite鏁版嵁搴撴枃浠惰矾寰� - type: string - dbType: - description: 鏁版嵁搴撶被鍨� - type: string - host: - description: 鏈嶅姟鍣ㄥ湴鍧� - type: string - password: - description: 鏁版嵁搴撳瘑鐮� - type: string - port: - description: 鏁版嵁搴撹繛鎺ョ鍙� - type: string - userName: - description: 鏁版嵁搴撶敤鎴峰悕 - type: string - required: - - dbName - type: object - request.Login: - properties: - captcha: - description: 楠岃瘉鐮� - type: string - captchaId: - description: 楠岃瘉鐮両D - type: string - password: - description: 瀵嗙爜 - type: string - username: - description: 鐢ㄦ埛鍚� - type: string - type: object - request.PageInfo: - properties: - keyword: - description: 鍏抽敭瀛� - type: string - page: - description: 椤电爜 - type: integer - pageSize: - description: 姣忛〉澶у皬 - type: integer - type: object request.ProductCreate: properties: list: items: $ref: '#/definitions/test.Product' type: array - type: object - request.Register: - properties: - authorityId: - example: int 瑙掕壊id - type: string - authorityIds: - example: '[]uint 瑙掕壊id' - type: string - email: - example: 鐢靛瓙閭 - type: string - enable: - example: int 鏄惁鍚敤 - type: string - headerImg: - example: 澶村儚閾炬帴 - type: string - nickName: - example: 鏄电О - type: string - passWord: - example: 瀵嗙爜 - type: string - phone: - example: 鐢佃瘽鍙风爜 - type: string - userName: - example: 鐢ㄦ埛鍚� - type: string - type: object - request.RollBack: - properties: - deleteTable: - description: 鏄惁鍒犻櫎琛� - type: boolean - id: - description: 涓婚敭ID - type: integer - type: object - request.SearchApiParams: - properties: - apiGroup: - description: api缁� - type: string - created_at: - 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 - updated_at: - type: string - type: object - request.SetUserAuth: - properties: - authorityId: - description: 瑙掕壊ID - type: integer - type: object - request.SetUserAuthorities: - properties: - authorityIds: - description: 瑙掕壊ID - items: - type: integer - type: array - id: - type: integer type: object request.SupplierStatus: properties: @@ -1190,70 +671,6 @@ $ref: '#/definitions/test.SupplierType' type: array type: object - request.SysAuthorityBtnReq: - properties: - authorityId: - type: integer - menuID: - type: integer - selected: - items: - type: integer - type: array - type: object - request.SysAutoHistory: - properties: - keyword: - description: 鍏抽敭瀛� - type: string - page: - description: 椤电爜 - type: integer - pageSize: - description: 姣忛〉澶у皬 - type: integer - type: object - response.Email: - properties: - body: - description: 閭欢鍐呭 - type: string - subject: - description: 閭欢鏍囬 - type: string - to: - description: 閭欢鍙戦�佺粰璋� - type: string - type: object - response.ExaCustomerResponse: - properties: - customer: - $ref: '#/definitions/example.ExaCustomer' - type: object - response.ExaFileResponse: - properties: - file: - $ref: '#/definitions/example.ExaFileUploadAndDownload' - type: object - response.FilePathResponse: - properties: - filePath: - type: string - type: object - response.FileResponse: - properties: - file: - $ref: '#/definitions/example.ExaFile' - type: object - response.LoginResponse: - properties: - expiresAt: - type: integer - token: - type: string - user: - $ref: '#/definitions/system.SysUser' - type: object response.PageResult: properties: list: {} @@ -1263,13 +680,6 @@ type: integer total: type: integer - type: object - response.PolicyPathResponse: - properties: - paths: - items: - $ref: '#/definitions/request.CasbinInfo' - type: array type: object response.PurchaseProducts: properties: @@ -1322,559 +732,6 @@ type: integer data: {} msg: - type: string - type: object - response.SysAPIListResponse: - properties: - apis: - items: - $ref: '#/definitions/system.SysApi' - type: array - type: object - response.SysAPIResponse: - properties: - api: - $ref: '#/definitions/system.SysApi' - type: object - response.SysAuthorityBtnRes: - properties: - selected: - items: - type: integer - type: array - type: object - response.SysAuthorityCopyResponse: - properties: - authority: - $ref: '#/definitions/system.SysAuthority' - oldAuthorityId: - description: 鏃ц鑹睮D - type: integer - type: object - response.SysAuthorityResponse: - properties: - authority: - $ref: '#/definitions/system.SysAuthority' - type: object - response.SysBaseMenuResponse: - properties: - menu: - $ref: '#/definitions/system.SysBaseMenu' - type: object - response.SysBaseMenusResponse: - properties: - menus: - items: - $ref: '#/definitions/system.SysBaseMenu' - type: array - type: object - response.SysCaptchaResponse: - properties: - captchaId: - type: string - captchaLength: - type: integer - openCaptcha: - type: boolean - picPath: - type: string - type: object - response.SysConfigResponse: - properties: - config: - $ref: '#/definitions/config.Server' - type: object - response.SysMenusResponse: - properties: - menus: - items: - $ref: '#/definitions/system.SysMenu' - type: array - type: object - response.SysUserResponse: - properties: - user: - $ref: '#/definitions/system.SysUser' - type: object - srm_config.Email: - 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 - type: object - system.AutoCodeStruct: - 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: - items: - $ref: '#/definitions/system.Field' - type: array - hasTimer: - type: boolean - humpPackageName: - description: go鏂囦欢鍚嶇О - type: string - package: - type: string - packageName: - description: 鏂囦欢鍚嶇О - type: string - structName: - description: Struct鍚嶇О - type: string - tableName: - description: 琛ㄥ悕 - type: string - type: object - system.Field: - 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 - type: object - system.Meta: - 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 - type: object - system.SysApi: - properties: - apiGroup: - description: api缁� - type: string - created_at: - 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 - updated_at: - type: string - type: object - system.SysAuthority: - properties: - authorityId: - description: 瑙掕壊ID - type: integer - authorityName: - description: 瑙掕壊鍚� - type: string - children: - items: - $ref: '#/definitions/system.SysAuthority' - type: array - createdAt: - description: 鍒涘缓鏃堕棿 - type: string - dataAuthorityId: - items: - $ref: '#/definitions/system.SysAuthority' - type: array - defaultRouter: - description: 榛樿鑿滃崟(榛樿dashboard) - type: string - deletedAt: - type: string - menus: - items: - $ref: '#/definitions/system.SysBaseMenu' - type: array - parentId: - description: 鐖惰鑹睮D - type: integer - updatedAt: - description: 鏇存柊鏃堕棿 - type: string - type: object - system.SysAutoCode: - properties: - created_at: - type: string - desc: - type: string - id: - description: 涓婚敭ID - type: integer - label: - type: string - packageName: - type: string - updated_at: - type: string - type: object - system.SysBaseMenu: - properties: - authoritys: - items: - $ref: '#/definitions/system.SysAuthority' - type: array - children: - items: - $ref: '#/definitions/system.SysBaseMenu' - type: array - component: - description: 瀵瑰簲鍓嶇鏂囦欢璺緞 - type: string - created_at: - type: string - hidden: - description: 鏄惁鍦ㄥ垪琛ㄩ殣钘� - type: boolean - id: - description: 涓婚敭ID - type: integer - menuBtn: - items: - $ref: '#/definitions/system.SysBaseMenuBtn' - type: array - meta: - allOf: - - $ref: '#/definitions/system.Meta' - description: 闄勫姞灞炴�� - name: - description: 璺敱name - type: string - parameters: - items: - $ref: '#/definitions/system.SysBaseMenuParameter' - type: array - parentId: - description: 鐖惰彍鍗旾D - type: string - path: - description: 璺敱path - type: string - sort: - description: 鎺掑簭鏍囪 - type: integer - updated_at: - type: string - type: object - system.SysBaseMenuBtn: - properties: - created_at: - type: string - desc: - type: string - id: - description: 涓婚敭ID - type: integer - name: - type: string - sysBaseMenuID: - type: integer - updated_at: - type: string - type: object - system.SysBaseMenuParameter: - properties: - created_at: - type: string - id: - description: 涓婚敭ID - type: integer - key: - description: 鍦板潃鏍忔惡甯﹀弬鏁扮殑key - type: string - sysBaseMenuID: - type: integer - type: - description: 鍦板潃鏍忔惡甯﹀弬鏁颁负params杩樻槸query - type: string - updated_at: - type: string - value: - description: 鍦板潃鏍忔惡甯﹀弬鏁扮殑鍊� - type: string - type: object - system.SysDictionary: - properties: - created_at: - type: string - desc: - description: 鎻忚堪 - type: string - id: - description: 涓婚敭ID - type: integer - name: - description: 瀛楀吀鍚嶏紙涓級 - type: string - status: - description: 鐘舵�� - type: boolean - sysDictionaryDetails: - items: - $ref: '#/definitions/system.SysDictionaryDetail' - type: array - type: - description: 瀛楀吀鍚嶏紙鑻憋級 - type: string - updated_at: - type: string - type: object - system.SysDictionaryDetail: - properties: - created_at: - type: string - id: - description: 涓婚敭ID - type: integer - label: - description: 灞曠ず鍊� - type: string - sort: - description: 鎺掑簭鏍囪 - type: integer - status: - description: 鍚敤鐘舵�� - type: boolean - sysDictionaryID: - description: 鍏宠仈鏍囪 - type: integer - updated_at: - type: string - value: - description: 瀛楀吀鍊� - type: integer - type: object - system.SysMenu: - properties: - authoritys: - items: - $ref: '#/definitions/system.SysAuthority' - type: array - btns: - additionalProperties: - type: integer - type: object - children: - items: - $ref: '#/definitions/system.SysMenu' - type: array - component: - description: 瀵瑰簲鍓嶇鏂囦欢璺緞 - type: string - created_at: - type: string - hidden: - description: 鏄惁鍦ㄥ垪琛ㄩ殣钘� - type: boolean - id: - description: 涓婚敭ID - type: integer - menuBtn: - items: - $ref: '#/definitions/system.SysBaseMenuBtn' - type: array - menuId: - type: string - meta: - allOf: - - $ref: '#/definitions/system.Meta' - description: 闄勫姞灞炴�� - name: - description: 璺敱name - type: string - parameters: - items: - $ref: '#/definitions/system.SysBaseMenuParameter' - type: array - parentId: - description: 鐖惰彍鍗旾D - type: string - path: - description: 璺敱path - type: string - sort: - description: 鎺掑簭鏍囪 - type: integer - updated_at: - type: string - type: object - system.SysOperationRecord: - properties: - agent: - description: 浠g悊 - type: string - body: - description: 璇锋眰Body - type: string - created_at: - 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 - updated_at: - type: string - user: - $ref: '#/definitions/system.SysUser' - user_id: - description: 鐢ㄦ埛id - type: integer - type: object - system.SysUser: - properties: - activeColor: - description: 娲昏穬棰滆壊 - type: string - authorities: - items: - $ref: '#/definitions/system.SysAuthority' - type: array - authority: - $ref: '#/definitions/system.SysAuthority' - authorityId: - description: 鐢ㄦ埛瑙掕壊ID - type: integer - baseColor: - description: 鍩虹棰滆壊 - type: string - created_at: - 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 - updated_at: - type: string - userName: - description: 鐢ㄦ埛鐧诲綍鍚� - type: string - uuid: - description: 鐢ㄦ埛UUID type: string type: object system.System: @@ -2024,1002 +881,6 @@ title: Swagger Example API version: 0.0.1 paths: - /api/createApi: - post: - consumes: - - application/json - parameters: - - description: api璺緞, api涓枃鎻忚堪, api缁�, 鏂规硶 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysApi' - produces: - - application/json - responses: - "200": - description: 鍒涘缓鍩虹api - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓鍩虹api - tags: - - SysApi - /api/deleteApi: - post: - consumes: - - application/json - parameters: - - description: ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysApi' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎api - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎api - tags: - - SysApi - /api/deleteApisByIds: - delete: - consumes: - - application/json - parameters: - - description: ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.IdsReq' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎閫変腑Api - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎閫変腑Api - tags: - - SysApi - /api/freshCasbin: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鍒锋柊鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - summary: 鍒锋柊casbin缂撳瓨 - tags: - - SysApi - /api/getAllApis: - post: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鑾峰彇鎵�鏈夌殑Api 涓嶅垎椤�,杩斿洖鍖呮嫭api鍒楄〃 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysAPIListResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鎵�鏈夌殑Api 涓嶅垎椤� - tags: - - SysApi - /api/getApiById: - post: - consumes: - - application/json - parameters: - - description: 鏍规嵁id鑾峰彇api - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetById' - produces: - - application/json - responses: - "200": - description: 鏍规嵁id鑾峰彇api,杩斿洖鍖呮嫭api璇︽儏 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysAPIResponse' - type: object - security: - - ApiKeyAuth: [] - summary: 鏍规嵁id鑾峰彇api - tags: - - SysApi - /api/getApiList: - post: - consumes: - - application/json - parameters: - - description: 鍒嗛〉鑾峰彇API鍒楄〃 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.SearchApiParams' - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇API鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇API鍒楄〃 - tags: - - SysApi - /api/updateApi: - post: - consumes: - - application/json - parameters: - - description: api璺緞, api涓枃鎻忚堪, api缁�, 鏂规硶 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysApi' - produces: - - application/json - responses: - "200": - description: 淇敼鍩虹api - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 淇敼鍩虹api - tags: - - SysApi - /authority/copyAuthority: - post: - consumes: - - application/json - parameters: - - description: 鏃ц鑹瞚d, 鏂版潈闄恑d, 鏂版潈闄愬悕, 鏂扮埗瑙掕壊id - in: body - name: data - required: true - schema: - $ref: '#/definitions/response.SysAuthorityCopyResponse' - produces: - - application/json - responses: - "200": - description: 鎷疯礉瑙掕壊,杩斿洖鍖呮嫭绯荤粺瑙掕壊璇︽儏 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysAuthorityResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鎷疯礉瑙掕壊 - tags: - - Authority - /authority/createAuthority: - post: - consumes: - - application/json - parameters: - - description: 鏉冮檺id, 鏉冮檺鍚�, 鐖惰鑹瞚d - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAuthority' - produces: - - application/json - responses: - "200": - description: 鍒涘缓瑙掕壊,杩斿洖鍖呮嫭绯荤粺瑙掕壊璇︽儏 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysAuthorityResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓瑙掕壊 - tags: - - Authority - /authority/deleteAuthority: - post: - consumes: - - application/json - parameters: - - description: 鍒犻櫎瑙掕壊 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAuthority' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎瑙掕壊 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎瑙掕壊 - tags: - - Authority - /authority/getAuthorityList: - post: - consumes: - - application/json - parameters: - - description: 椤电爜, 姣忛〉澶у皬 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.PageInfo' - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇瑙掕壊鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇瑙掕壊鍒楄〃 - tags: - - Authority - /authority/setDataAuthority: - post: - consumes: - - application/json - parameters: - - description: 璁剧疆瑙掕壊璧勬簮鏉冮檺 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAuthority' - produces: - - application/json - responses: - "200": - description: 璁剧疆瑙掕壊璧勬簮鏉冮檺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 璁剧疆瑙掕壊璧勬簮鏉冮檺 - tags: - - Authority - /authority/updateAuthority: - post: - consumes: - - application/json - parameters: - - description: 鏉冮檺id, 鏉冮檺鍚�, 鐖惰鑹瞚d - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAuthority' - produces: - - application/json - responses: - "200": - description: 鏇存柊瑙掕壊淇℃伅,杩斿洖鍖呮嫭绯荤粺瑙掕壊璇︽儏 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysAuthorityResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏇存柊瑙掕壊淇℃伅 - tags: - - Authority - /authorityBtn/canRemoveAuthorityBtn: - post: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鍒犻櫎鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 璁剧疆鏉冮檺鎸夐挳 - tags: - - AuthorityBtn - /authorityBtn/getAuthorityBtn: - post: - consumes: - - application/json - parameters: - - description: 鑿滃崟id, 瑙掕壊id, 閫変腑鐨勬寜閽甶d - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.SysAuthorityBtnReq' - produces: - - application/json - responses: - "200": - description: 杩斿洖鍒楄〃鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysAuthorityBtnRes' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鏉冮檺鎸夐挳 - tags: - - AuthorityBtn - /authorityBtn/setAuthorityBtn: - post: - consumes: - - application/json - parameters: - - description: 鑿滃崟id, 瑙掕壊id, 閫変腑鐨勬寜閽甶d - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.SysAuthorityBtnReq' - produces: - - application/json - responses: - "200": - description: 杩斿洖鍒楄〃鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 璁剧疆鏉冮檺鎸夐挳 - tags: - - AuthorityBtn - /autoCode/createPackage: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓package - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAutoCode' - produces: - - application/json - responses: - "200": - description: 鍒涘缓package鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓package - tags: - - AutoCode - /autoCode/createPlug: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓鎻掍欢妯℃澘 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAutoCode' - produces: - - application/json - responses: - "200": - description: 鍒涘缓鎻掍欢妯℃澘鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓鎻掍欢妯℃澘 - tags: - - AutoCode - /autoCode/createTemp: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓鑷姩浠g爜 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.AutoCodeStruct' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鍒涘缓鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鑷姩浠g爜妯℃澘 - tags: - - AutoCode - /autoCode/delPackage: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓package - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAutoCode' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎package鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎package - tags: - - AutoCode - /autoCode/delSysHistory: - post: - consumes: - - application/json - parameters: - - description: 璇锋眰鍙傛暟 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetById' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎鍥炴粴璁板綍 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎鍥炴粴璁板綍 - tags: - - AutoCode - /autoCode/getColumn: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鑾峰彇褰撳墠琛ㄦ墍鏈夊瓧娈� - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇褰撳墠琛ㄦ墍鏈夊瓧娈� - tags: - - AutoCode - /autoCode/getDatabase: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鑾峰彇褰撳墠鎵�鏈夋暟鎹簱 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇褰撳墠鎵�鏈夋暟鎹簱 - tags: - - AutoCode - /autoCode/getMeta: - post: - consumes: - - application/json - parameters: - - description: 璇锋眰鍙傛暟 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetById' - produces: - - application/json - responses: - "200": - description: 鑾峰彇meta淇℃伅 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇meta淇℃伅 - tags: - - AutoCode - /autoCode/getPackage: - post: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鍒涘缓package鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇package - tags: - - AutoCode - /autoCode/getSysHistory: - post: - consumes: - - application/json - parameters: - - description: 璇锋眰鍙傛暟 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.SysAutoHistory' - produces: - - application/json - responses: - "200": - description: 鏌ヨ鍥炴粴璁板綍,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏌ヨ鍥炴粴璁板綍 - tags: - - AutoCode - /autoCode/getTables: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鑾峰彇褰撳墠鏁版嵁搴撴墍鏈夎〃 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇褰撳墠鏁版嵁搴撴墍鏈夎〃 - tags: - - AutoCode - /autoCode/installPlugin: - post: - consumes: - - multipart/form-data - parameters: - - description: this is a test file - in: formData - name: plug - required: true - type: file - produces: - - application/json - responses: - "200": - description: 瀹夎鎻掍欢鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - items: - type: object - type: array - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 瀹夎鎻掍欢 - tags: - - AutoCode - /autoCode/preview: - post: - consumes: - - application/json - parameters: - - description: 棰勮鍒涘缓浠g爜 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.AutoCodeStruct' - produces: - - application/json - responses: - "200": - description: 棰勮鍒涘缓鍚庣殑浠g爜 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 棰勮鍒涘缓鍚庣殑浠g爜 - tags: - - AutoCode - /autoCode/pubPlug: - get: - consumes: - - application/json - parameters: - - description: 鎵撳寘鎻掍欢 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysAutoCode' - produces: - - application/json - responses: - "200": - description: 鎵撳寘鎻掍欢鎴愬姛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鎵撳寘鎻掍欢 - tags: - - AutoCode - /autoCode/rollback: - post: - consumes: - - application/json - parameters: - - description: 璇锋眰鍙傛暟 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.RollBack' - produces: - - application/json - responses: - "200": - description: 鍥炴粴鑷姩鐢熸垚浠g爜 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍥炴粴鑷姩鐢熸垚浠g爜 - tags: - - AutoCode - /base/captcha: - post: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鐢熸垚楠岃瘉鐮�,杩斿洖鍖呮嫭闅忔満鏁癷d,base64,楠岃瘉鐮侀暱搴�,鏄惁寮�鍚獙璇佺爜 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysCaptchaResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鐢熸垚楠岃瘉鐮� - tags: - - Base - /base/login: - post: - parameters: - - description: 鐢ㄦ埛鍚�, 瀵嗙爜, 楠岃瘉鐮� - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.Login' - produces: - - application/json - responses: - "200": - description: 杩斿洖鍖呮嫭鐢ㄦ埛淇℃伅,token,杩囨湡鏃堕棿 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.LoginResponse' - msg: - type: string - type: object - summary: 鐢ㄦ埛鐧诲綍 - tags: - - Base - /casbin/UpdateCasbin: - post: - consumes: - - application/json - parameters: - - description: 鏉冮檺id, 鏉冮檺妯″瀷鍒楄〃 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.CasbinInReceive' - produces: - - application/json - responses: - "200": - description: 鏇存柊瑙掕壊api鏉冮檺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏇存柊瑙掕壊api鏉冮檺 - tags: - - Casbin - /casbin/getPolicyPathByAuthorityId: - post: - consumes: - - application/json - parameters: - - description: 鏉冮檺id, 鏉冮檺妯″瀷鍒楄〃 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.CasbinInReceive' - produces: - - application/json - responses: - "200": - description: 鑾峰彇鏉冮檺鍒楄〃,杩斿洖鍖呮嫭casbin璇︽儏鍒楄〃 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PolicyPathResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鏉冮檺鍒楄〃 - tags: - - Casbin /con/createContract: post: consumes: @@ -3266,376 +1127,6 @@ summary: 鏇存柊Contract tags: - Contract - /customer/customer: - delete: - consumes: - - application/json - parameters: - - description: 瀹㈡埛ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/example.ExaCustomer' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎瀹㈡埛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎瀹㈡埛 - tags: - - ExaCustomer - get: - consumes: - - application/json - parameters: - - in: query - name: created_at - type: string - - description: 瀹㈡埛鍚� - in: query - name: customerName - type: string - - description: 瀹㈡埛鎵嬫満鍙� - in: query - name: customerPhoneData - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 绠$悊瑙掕壊ID - in: query - name: sysUserAuthorityID - type: integer - - description: 绠$悊ID - in: query - name: sysUserId - type: integer - - in: query - name: updated_at - type: string - produces: - - application/json - responses: - "200": - description: 鑾峰彇鍗曚竴瀹㈡埛淇℃伅,杩斿洖鍖呮嫭瀹㈡埛璇︽儏 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.ExaCustomerResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鍗曚竴瀹㈡埛淇℃伅 - tags: - - ExaCustomer - post: - consumes: - - application/json - parameters: - - description: 瀹㈡埛鐢ㄦ埛鍚�, 瀹㈡埛鎵嬫満鍙风爜 - in: body - name: data - required: true - schema: - $ref: '#/definitions/example.ExaCustomer' - produces: - - application/json - responses: - "200": - description: 鍒涘缓瀹㈡埛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓瀹㈡埛 - tags: - - ExaCustomer - put: - consumes: - - application/json - parameters: - - description: 瀹㈡埛ID, 瀹㈡埛淇℃伅 - in: body - name: data - required: true - schema: - $ref: '#/definitions/example.ExaCustomer' - produces: - - application/json - responses: - "200": - description: 鏇存柊瀹㈡埛淇℃伅 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏇存柊瀹㈡埛淇℃伅 - tags: - - ExaCustomer - /customer/customerList: - get: - consumes: - - application/json - parameters: - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇鏉冮檺瀹㈡埛鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇鏉冮檺瀹㈡埛鍒楄〃 - tags: - - ExaCustomer - /email/emailTest: - post: - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鍙戦�佹垚鍔�"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍙戦�佹祴璇曢偖浠� - tags: - - System - /email/sendEmail: - post: - parameters: - - description: 鍙戦�侀偖浠跺繀椤荤殑鍙傛暟 - in: body - name: data - required: true - schema: - $ref: '#/definitions/response.Email' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鍙戦�佹垚鍔�"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍙戦�侀偖浠� - tags: - - System - /fileUploadAndDownload/breakpointContinue: - post: - consumes: - - multipart/form-data - parameters: - - description: an example for breakpoint resume, 鏂偣缁紶绀轰緥 - in: formData - name: file - required: true - type: file - produces: - - application/json - responses: - "200": - description: 鏂偣缁紶鍒版湇鍔″櫒 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏂偣缁紶鍒版湇鍔″櫒 - tags: - - ExaFileUploadAndDownload - /fileUploadAndDownload/deleteFile: - post: - parameters: - - description: 浼犲叆鏂囦欢閲岄潰id鍗冲彲 - in: body - name: data - required: true - schema: - $ref: '#/definitions/example.ExaFileUploadAndDownload' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎鏂囦欢 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎鏂囦欢 - tags: - - ExaFileUploadAndDownload - /fileUploadAndDownload/findFile: - post: - consumes: - - multipart/form-data - parameters: - - description: 涓婁紶鏂囦欢瀹屾垚 - in: formData - name: file - required: true - type: file - produces: - - application/json - responses: - "200": - description: 鍒涘缓鏂囦欢,杩斿洖鍖呮嫭鏂囦欢璺緞 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.FilePathResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓鏂囦欢 - tags: - - ExaFileUploadAndDownload - /fileUploadAndDownload/getFileList: - post: - consumes: - - application/json - parameters: - - description: 椤电爜, 姣忛〉澶у皬 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.PageInfo' - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鏂囦欢鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鏂囦欢鍒楄〃 - tags: - - ExaFileUploadAndDownload - /fileUploadAndDownload/removeChunk: - post: - consumes: - - multipart/form-data - parameters: - - description: 鍒犻櫎缂撳瓨鍒囩墖 - in: formData - name: file - required: true - type: file - produces: - - application/json - responses: - "200": - description: 鍒犻櫎鍒囩墖 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎鍒囩墖 - tags: - - ExaFileUploadAndDownload - /fileUploadAndDownload/upload: - post: - consumes: - - multipart/form-data - parameters: - - description: 涓婁紶鏂囦欢绀轰緥 - in: formData - name: file - required: true - type: file - produces: - - application/json - responses: - "200": - description: 涓婁紶鏂囦欢绀轰緥,杩斿洖鍖呮嫭鏂囦欢璇︽儏 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.ExaFileResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 涓婁紶鏂囦欢绀轰緥 - tags: - - ExaFileUploadAndDownload /i/createIndustry: post: consumes: @@ -3806,71 +1297,6 @@ summary: 鏇存柊Industry tags: - Industry - /init/checkdb: - post: - produces: - - application/json - responses: - "200": - description: 鍒濆鍖栫敤鎴锋暟鎹簱 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - summary: 鍒濆鍖栫敤鎴锋暟鎹簱 - tags: - - CheckDB - /init/initdb: - post: - parameters: - - description: 鍒濆鍖栨暟鎹簱鍙傛暟 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.InitDB' - produces: - - application/json - responses: - "200": - description: 鍒濆鍖栫敤鎴锋暟鎹簱 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - type: string - type: object - summary: 鍒濆鍖栫敤鎴锋暟鎹簱 - tags: - - InitDB - /jwt/jsonInBlacklist: - post: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: jwt鍔犲叆榛戝悕鍗� - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: jwt鍔犲叆榛戝悕鍗� - tags: - - Jwt /m/createMember: post: consumes: @@ -4107,265 +1533,6 @@ summary: 鏇存柊Member tags: - Member - /menu/addBaseMenu: - post: - consumes: - - application/json - parameters: - - description: 璺敱path, 鐖惰彍鍗旾D, 璺敱name, 瀵瑰簲鍓嶇鏂囦欢璺緞, 鎺掑簭鏍囪 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysBaseMenu' - produces: - - application/json - responses: - "200": - description: 鏂板鑿滃崟 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏂板鑿滃崟 - tags: - - Menu - /menu/addMenuAuthority: - post: - consumes: - - application/json - parameters: - - description: 瑙掕壊ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.AddMenuAuthorityInfo' - produces: - - application/json - responses: - "200": - description: 澧炲姞menu鍜岃鑹插叧鑱斿叧绯� - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 澧炲姞menu鍜岃鑹插叧鑱斿叧绯� - tags: - - AuthorityMenu - /menu/deleteBaseMenu: - post: - consumes: - - application/json - parameters: - - description: 鑿滃崟id - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetById' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎鑿滃崟 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎鑿滃崟 - tags: - - Menu - /menu/getBaseMenuById: - post: - consumes: - - application/json - parameters: - - description: 鑿滃崟id - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetById' - produces: - - application/json - responses: - "200": - description: 鏍规嵁id鑾峰彇鑿滃崟,杩斿洖鍖呮嫭绯荤粺鑿滃崟鍒楄〃 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysBaseMenuResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏍规嵁id鑾峰彇鑿滃崟 - tags: - - Menu - /menu/getBaseMenuTree: - post: - parameters: - - description: 绌� - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.Empty' - produces: - - application/json - responses: - "200": - description: 鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢�,杩斿洖鍖呮嫭绯荤粺鑿滃崟鍒楄〃 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysBaseMenusResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢� - tags: - - AuthorityMenu - /menu/getMenu: - post: - parameters: - - description: 绌� - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.Empty' - produces: - - application/json - responses: - "200": - description: 鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢�,杩斿洖鍖呮嫭绯荤粺鑿滃崟璇︽儏鍒楄〃 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysMenusResponse' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鐢ㄦ埛鍔ㄦ�佽矾鐢� - tags: - - AuthorityMenu - /menu/getMenuAuthority: - post: - consumes: - - application/json - parameters: - - description: 瑙掕壊ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetAuthorityId' - produces: - - application/json - responses: - "200": - description: 鑾峰彇鎸囧畾瑙掕壊menu - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鎸囧畾瑙掕壊menu - tags: - - AuthorityMenu - /menu/getMenuList: - post: - consumes: - - application/json - parameters: - - description: 椤电爜, 姣忛〉澶у皬 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.PageInfo' - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇鍩虹menu鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇鍩虹menu鍒楄〃 - tags: - - Menu - /menu/updateBaseMenu: - post: - consumes: - - application/json - parameters: - - description: 璺敱path, 鐖惰彍鍗旾D, 璺敱name, 瀵瑰簲鍓嶇鏂囦欢璺緞, 鎺掑簭鏍囪 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysBaseMenu' - produces: - - application/json - responses: - "200": - description: 鏇存柊鑿滃崟 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏇存柊鑿滃崟 - tags: - - Menu /p/createProduct: post: consumes: @@ -4944,29 +2111,6 @@ summary: 鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛� tags: - QualityInspect - /purchase/qualityTest: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇璐ㄦ鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: QualityTest - tags: - - QualityInspect /purchase/submit/{id}: post: consumes: @@ -5441,653 +2585,6 @@ summary: 鏇存柊SupplierType tags: - SupplierType - /sysDictionary/createSysDictionary: - post: - consumes: - - application/json - parameters: - - description: SysDictionary妯″瀷 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysDictionary' - produces: - - application/json - responses: - "200": - description: 鍒涘缓SysDictionary - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓SysDictionary - tags: - - SysDictionary - /sysDictionary/deleteSysDictionary: - delete: - consumes: - - application/json - parameters: - - description: SysDictionary妯″瀷 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysDictionary' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎SysDictionary - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎SysDictionary - tags: - - SysDictionary - /sysDictionary/findSysDictionary: - get: - consumes: - - application/json - parameters: - - in: query - name: created_at - type: string - - description: 鎻忚堪 - in: query - name: desc - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 瀛楀吀鍚嶏紙涓級 - in: query - name: name - type: string - - description: 鐘舵�� - in: query - name: status - type: boolean - - description: 瀛楀吀鍚嶏紙鑻憋級 - in: query - name: type - type: string - - in: query - name: updated_at - type: string - produces: - - application/json - responses: - "200": - description: 鐢╥d鏌ヨSysDictionary - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鐢╥d鏌ヨSysDictionary - tags: - - SysDictionary - /sysDictionary/getSysDictionaryList: - get: - consumes: - - application/json - parameters: - - in: query - name: created_at - type: string - - description: 鎻忚堪 - in: query - name: desc - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - description: 瀛楀吀鍚嶏紙涓級 - in: query - name: name - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - description: 鐘舵�� - in: query - name: status - type: boolean - - description: 瀛楀吀鍚嶏紙鑻憋級 - in: query - name: type - type: string - - in: query - name: updated_at - type: string - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇SysDictionary鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇SysDictionary鍒楄〃 - tags: - - SysDictionary - /sysDictionary/updateSysDictionary: - put: - consumes: - - application/json - parameters: - - description: SysDictionary妯″瀷 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysDictionary' - produces: - - application/json - responses: - "200": - description: 鏇存柊SysDictionary - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏇存柊SysDictionary - tags: - - SysDictionary - /sysDictionaryDetail/createSysDictionaryDetail: - post: - consumes: - - application/json - parameters: - - description: SysDictionaryDetail妯″瀷 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysDictionaryDetail' - produces: - - application/json - responses: - "200": - description: 鍒涘缓SysDictionaryDetail - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓SysDictionaryDetail - tags: - - SysDictionaryDetail - /sysDictionaryDetail/deleteSysDictionaryDetail: - delete: - consumes: - - application/json - parameters: - - description: SysDictionaryDetail妯″瀷 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysDictionaryDetail' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎SysDictionaryDetail - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎SysDictionaryDetail - tags: - - SysDictionaryDetail - /sysDictionaryDetail/findSysDictionaryDetail: - get: - consumes: - - application/json - parameters: - - in: query - name: created_at - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 灞曠ず鍊� - in: query - name: label - type: string - - description: 鎺掑簭鏍囪 - in: query - name: sort - type: integer - - description: 鍚敤鐘舵�� - in: query - name: status - type: boolean - - description: 鍏宠仈鏍囪 - in: query - name: sysDictionaryID - type: integer - - in: query - name: updated_at - type: string - - description: 瀛楀吀鍊� - in: query - name: value - type: integer - produces: - - application/json - responses: - "200": - description: 鐢╥d鏌ヨSysDictionaryDetail - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鐢╥d鏌ヨSysDictionaryDetail - tags: - - SysDictionaryDetail - /sysDictionaryDetail/getSysDictionaryDetailList: - get: - consumes: - - application/json - parameters: - - in: query - name: created_at - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - description: 灞曠ず鍊� - in: query - name: label - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - description: 鎺掑簭鏍囪 - in: query - name: sort - type: integer - - description: 鍚敤鐘舵�� - in: query - name: status - type: boolean - - description: 鍏宠仈鏍囪 - in: query - name: sysDictionaryID - type: integer - - in: query - name: updated_at - type: string - - description: 瀛楀吀鍊� - in: query - name: value - type: integer - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇SysDictionaryDetail鍒楄〃 - tags: - - SysDictionaryDetail - /sysDictionaryDetail/updateSysDictionaryDetail: - put: - consumes: - - application/json - parameters: - - description: 鏇存柊SysDictionaryDetail - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysDictionaryDetail' - produces: - - application/json - responses: - "200": - description: 鏇存柊SysDictionaryDetail - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏇存柊SysDictionaryDetail - tags: - - SysDictionaryDetail - /sysOperationRecord/createSysOperationRecord: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓SysOperationRecord - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysOperationRecord' - produces: - - application/json - responses: - "200": - description: 鍒涘缓SysOperationRecord - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒涘缓SysOperationRecord - tags: - - SysOperationRecord - /sysOperationRecord/deleteSysOperationRecord: - delete: - consumes: - - application/json - parameters: - - description: SysOperationRecord妯″瀷 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysOperationRecord' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎SysOperationRecord - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎SysOperationRecord - tags: - - SysOperationRecord - /sysOperationRecord/deleteSysOperationRecordByIds: - delete: - consumes: - - application/json - parameters: - - description: 鎵归噺鍒犻櫎SysOperationRecord - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.IdsReq' - produces: - - application/json - responses: - "200": - description: 鎵归噺鍒犻櫎SysOperationRecord - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鎵归噺鍒犻櫎SysOperationRecord - tags: - - SysOperationRecord - /sysOperationRecord/findSysOperationRecord: - get: - consumes: - - application/json - parameters: - - description: 浠g悊 - in: query - name: agent - type: string - - description: 璇锋眰Body - in: query - name: body - type: string - - in: query - name: created_at - type: string - - description: 閿欒淇℃伅 - in: query - name: error_message - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 璇锋眰ip - in: query - name: ip - type: string - - description: 寤惰繜 - in: query - name: latency - type: string - - description: 璇锋眰鏂规硶 - in: query - name: method - type: string - - description: 璇锋眰璺緞 - in: query - name: path - type: string - - description: 鍝嶅簲Body - in: query - name: resp - type: string - - description: 璇锋眰鐘舵�� - in: query - name: status - type: integer - - in: query - name: updated_at - type: string - - description: 鐢ㄦ埛id - in: query - name: user_id - type: integer - produces: - - application/json - responses: - "200": - description: 鐢╥d鏌ヨSysOperationRecord - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鐢╥d鏌ヨSysOperationRecord - tags: - - SysOperationRecord - /sysOperationRecord/getSysOperationRecordList: - get: - consumes: - - application/json - parameters: - - description: 浠g悊 - in: query - name: agent - type: string - - description: 璇锋眰Body - in: query - name: body - type: string - - in: query - name: created_at - type: string - - description: 閿欒淇℃伅 - in: query - name: error_message - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 璇锋眰ip - in: query - name: ip - type: string - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - description: 寤惰繜 - in: query - name: latency - type: string - - description: 璇锋眰鏂规硶 - in: query - name: method - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - description: 璇锋眰璺緞 - in: query - name: path - type: string - - description: 鍝嶅簲Body - in: query - name: resp - type: string - - description: 璇锋眰鐘舵�� - in: query - name: status - type: integer - - in: query - name: updated_at - type: string - - description: 鐢ㄦ埛id - in: query - name: user_id - type: integer - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇SysOperationRecord鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇SysOperationRecord鍒楄〃 - tags: - - SysOperationRecord /system/getServerInfo: post: produces: @@ -6122,7 +2619,7 @@ - $ref: '#/definitions/response.Response' - properties: data: - $ref: '#/definitions/response.SysConfigResponse' + $ref: '#/definitions/system.System' msg: type: string type: object @@ -6176,284 +2673,6 @@ summary: 璁剧疆閰嶇疆鏂囦欢鍐呭 tags: - System - /user/SetSelfInfo: - put: - consumes: - - application/json - parameters: - - description: ID, 鐢ㄦ埛鍚�, 鏄电О, 澶村儚閾炬帴 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysUser' - produces: - - application/json - responses: - "200": - description: 璁剧疆鐢ㄦ埛淇℃伅 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 璁剧疆鐢ㄦ埛淇℃伅 - tags: - - SysUser - /user/admin_register: - post: - parameters: - - description: 鐢ㄦ埛鍚�, 鏄电О, 瀵嗙爜, 瑙掕壊ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.Register' - produces: - - application/json - responses: - "200": - description: 鐢ㄦ埛娉ㄥ唽璐﹀彿,杩斿洖鍖呮嫭鐢ㄦ埛淇℃伅 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.SysUserResponse' - msg: - type: string - type: object - summary: 鐢ㄦ埛娉ㄥ唽璐﹀彿 - tags: - - SysUser - /user/changePassword: - post: - parameters: - - description: 鐢ㄦ埛鍚�, 鍘熷瘑鐮�, 鏂板瘑鐮� - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.ChangePasswordReq' - produces: - - application/json - responses: - "200": - description: 鐢ㄦ埛淇敼瀵嗙爜 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鐢ㄦ埛淇敼瀵嗙爜 - tags: - - SysUser - /user/deleteUser: - delete: - consumes: - - application/json - parameters: - - description: 鐢ㄦ埛ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetById' - produces: - - application/json - responses: - "200": - description: 鍒犻櫎鐢ㄦ埛 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎鐢ㄦ埛 - tags: - - SysUser - /user/getUserInfo: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: 鑾峰彇鐢ㄦ埛淇℃伅 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鑾峰彇鐢ㄦ埛淇℃伅 - tags: - - SysUser - /user/getUserList: - post: - consumes: - - application/json - parameters: - - description: 椤电爜, 姣忛〉澶у皬 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.PageInfo' - produces: - - application/json - responses: - "200": - description: 鍒嗛〉鑾峰彇鐢ㄦ埛鍒楄〃,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/response.PageResult' - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇鐢ㄦ埛鍒楄〃 - tags: - - SysUser - /user/resetPassword: - post: - parameters: - - description: ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysUser' - produces: - - application/json - responses: - "200": - description: 閲嶇疆鐢ㄦ埛瀵嗙爜 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 閲嶇疆鐢ㄦ埛瀵嗙爜 - tags: - - SysUser - /user/setUserAuthorities: - post: - consumes: - - application/json - parameters: - - description: 鐢ㄦ埛UUID, 瑙掕壊ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.SetUserAuthorities' - produces: - - application/json - responses: - "200": - description: 璁剧疆鐢ㄦ埛鏉冮檺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 璁剧疆鐢ㄦ埛鏉冮檺 - tags: - - SysUser - /user/setUserAuthority: - post: - consumes: - - application/json - parameters: - - description: 鐢ㄦ埛UUID, 瑙掕壊ID - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.SetUserAuth' - produces: - - application/json - responses: - "200": - description: 璁剧疆鐢ㄦ埛鏉冮檺 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 鏇存敼鐢ㄦ埛鏉冮檺 - tags: - - SysUser - /user/setUserInfo: - put: - consumes: - - application/json - parameters: - - description: ID, 鐢ㄦ埛鍚�, 鏄电О, 澶村儚閾炬帴 - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysUser' - produces: - - application/json - responses: - "200": - description: 璁剧疆鐢ㄦ埛淇℃伅 - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - additionalProperties: true - type: object - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 璁剧疆鐢ㄦ埛淇℃伅 - tags: - - SysUser securityDefinitions: ApiKeyAuth: in: header diff --git a/initialize/gorm.go b/initialize/gorm.go index 2d1058c..245a4a6 100644 --- a/initialize/gorm.go +++ b/initialize/gorm.go @@ -30,33 +30,14 @@ func RegisterTables() { db := global.GVA_DB err := db.AutoMigrate( - - //system.SysApi{}, - //system.SysUser{}, - //system.SysBaseMenu{}, - //system.JwtBlacklist{}, - //system.SysAuthority{}, - //system.SysDictionary{}, - //system.SysOperationRecord{}, - //system.SysAutoCodeHistory{}, - //system.SysDictionaryDetail{}, - //system.SysBaseMenuParameter{}, - //system.SysBaseMenuBtn{}, - //system.SysAuthorityBtn{}, - //system.SysAutoCode{}, - //system.SysChatGptOption{}, - - //example.ExaFile{}, - //example.ExaCustomer{}, - //example.ExaFileChunk{}, - //example.ExaFileUploadAndDownload{}, test.Industry{}, test.SupplierType{}, test.Supplier{}, test.Contract{}, test.Product{}, - //test.Member{}, - purchase.Purchase{}, purchase.PurchaseProducts{}, + test.Member{}, + purchase.Purchase{}, + purchase.PurchaseProducts{}, ) if err != nil { global.GVA_LOG.Error("register table failed", zap.Error(err)) diff --git a/initialize/router.go b/initialize/router.go index 4b0078a..4b390f7 100644 --- a/initialize/router.go +++ b/initialize/router.go @@ -47,6 +47,7 @@ testRouter.InitSupplierRouter(PrivateGroup) testRouter.InitContractRouter(PrivateGroup) testRouter.InitProductRouter(PrivateGroup) + testRouter.InitMemberRouter(PrivateGroup) } global.GVA_LOG.Info("router register success") diff --git a/model/test/member.go b/model/test/member.go new file mode 100644 index 0000000..b640c2e --- /dev/null +++ b/model/test/member.go @@ -0,0 +1,18 @@ +package test + +import ( + "srm/global" +) + +// Member 缁撴瀯浣� +type Member struct { + global.GVA_MODEL + Uuid string `json:"uuid" form:"uuid" gorm:"column:uuid;comment:uuid;size:255;"` + UserName string `json:"userName" form:"userName" gorm:"column:user_name;comment:鐢ㄦ埛鍚嶇О;size:255;"` + Nickname string `json:"nickname" form:"nickname" gorm:"column:nickname;comment:鏄电О;size:255;"` +} + +// TableName Member 琛ㄥ悕 +func (Member) TableName() string { + return "member" +} diff --git a/model/test/request/member.go b/model/test/request/member.go new file mode 100644 index 0000000..c4c4aa9 --- /dev/null +++ b/model/test/request/member.go @@ -0,0 +1,14 @@ +package request + +import ( + "srm/model/common/request" + "srm/model/test" + "time" +) + +type MemberSearch struct { + test.Member + StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"` + EndCreatedAt *time.Time `json:"endCreatedAt" form:"endCreatedAt"` + request.PageInfo +} diff --git a/router/test/enter.go b/router/test/enter.go index 9c7187e..7b78a04 100644 --- a/router/test/enter.go +++ b/router/test/enter.go @@ -6,4 +6,5 @@ SupplierRouter ContractRouter ProductRouter + MemberRouter } diff --git a/router/test/member.go b/router/test/member.go new file mode 100644 index 0000000..2aa17dc --- /dev/null +++ b/router/test/member.go @@ -0,0 +1,27 @@ +package test + +import ( + "github.com/gin-gonic/gin" + "srm/api/v1" +) + +type MemberRouter struct { +} + +// InitMemberRouter 鍒濆鍖� Member 璺敱淇℃伅 +func (s *MemberRouter) InitMemberRouter(Router *gin.RouterGroup) { + mRouter := Router.Group("m") + mRouterWithoutRecord := Router.Group("m") + var mApi = v1.ApiGroupApp.TestApiGroup.MemberApi + { + mRouter.POST("createMember", mApi.CreateMember) // 鏂板缓Member + mRouter.DELETE("deleteMember", mApi.DeleteMember) // 鍒犻櫎Member + mRouter.DELETE("deleteMemberByIds", mApi.DeleteMemberByIds) // 鎵归噺鍒犻櫎Member + mRouter.PUT("updateMember", mApi.UpdateMember) // 鏇存柊Member + } + { + mRouterWithoutRecord.GET("findMember", mApi.FindMember) // 鏍规嵁ID鑾峰彇Member + mRouterWithoutRecord.GET("getMemberList", mApi.GetMemberList) // 鑾峰彇Member鍒楄〃 + mRouterWithoutRecord.GET("getMemberListFromGrpc", mApi.GetMemberListFromGrpc) // 浠巊rpc鑾峰彇Member鍒楄〃 + } +} diff --git a/service/test/enter.go b/service/test/enter.go index d035d5b..726b48b 100644 --- a/service/test/enter.go +++ b/service/test/enter.go @@ -6,4 +6,5 @@ SupplierService ContractService ProductService + MemberService } diff --git a/service/test/member.go b/service/test/member.go new file mode 100644 index 0000000..02aca1c --- /dev/null +++ b/service/test/member.go @@ -0,0 +1,76 @@ +package test + +import ( + "srm/global" + "srm/model/common/request" + "srm/model/test" + testReq "srm/model/test/request" +) + +type MemberService struct { +} + +// CreateMember 鍒涘缓Member璁板綍 +// Author [piexlmax](https://github.com/piexlmax) +func (mService *MemberService) CreateMember(m *test.Member) (err error) { + err = global.GVA_DB.Create(m).Error + return err +} + +// DeleteMember 鍒犻櫎Member璁板綍 +// Author [piexlmax](https://github.com/piexlmax) +func (mService *MemberService) DeleteMember(m test.Member) (err error) { + err = global.GVA_DB.Delete(&m).Error + return err +} + +// DeleteMemberByIds 鎵归噺鍒犻櫎Member璁板綍 +// Author [piexlmax](https://github.com/piexlmax) +func (mService *MemberService) DeleteMemberByIds(ids request.IdsReq) (err error) { + err = global.GVA_DB.Delete(&[]test.Member{}, "id in ?", ids.Ids).Error + return err +} + +// UpdateMember 鏇存柊Member璁板綍 +// Author [piexlmax](https://github.com/piexlmax) +func (mService *MemberService) UpdateMember(m test.Member) (err error) { + err = global.GVA_DB.Updates(&m).Error + return err +} + +// GetMember 鏍规嵁id鑾峰彇Member璁板綍 +// Author [piexlmax](https://github.com/piexlmax) +func (mService *MemberService) GetMember(id uint) (m test.Member, err error) { + err = global.GVA_DB.Where("id = ?", id).First(&m).Error + return +} + +// GetMemberInfoList 鍒嗛〉鑾峰彇Member璁板綍 +// Author [piexlmax](https://github.com/piexlmax) +func (mService *MemberService) GetMemberInfoList(info testReq.MemberSearch) (list []test.Member, total int64, err error) { + limit := info.PageSize + offset := info.PageSize * (info.Page - 1) + // 鍒涘缓db + db := global.GVA_DB.Model(&test.Member{}) + var ms []test.Member + // 濡傛灉鏈夋潯浠舵悳绱� 涓嬫柟浼氳嚜鍔ㄥ垱寤烘悳绱㈣鍙� + if info.StartCreatedAt != nil && info.EndCreatedAt != nil { + db = db.Where("created_at BETWEEN ? AND ?", info.StartCreatedAt, info.EndCreatedAt) + } + if info.Uuid != "" { + db = db.Where("uuid LIKE ?", "%"+info.Uuid+"%") + } + if info.UserName != "" { + db = db.Where("user_name LIKE ?", "%"+info.UserName+"%") + } + if info.Nickname != "" { + db = db.Where("nickname LIKE ?", "%"+info.Nickname+"%") + } + err = db.Count(&total).Error + if err != nil { + return + } + + err = db.Limit(limit).Offset(offset).Find(&ms).Error + return ms, total, err +} -- Gitblit v1.8.0