From 3b474a056ea35196ce5d2a5f297eafa11295a95d Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 22 十一月 2023 14:23:13 +0800 Subject: [PATCH] 添加登录功能 --- docs/swagger.yaml | 4025 +--------------------------------------------------------- 1 files changed, 95 insertions(+), 3,930 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 50a0f2c..4520db0 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: @@ -511,57 +308,19 @@ description: 鐜鍊� type: string grpc-admin-url: - description: grpc鏈嶅姟鍦板潃 + description: admin grpc鏈嶅姟鍦板潃 + type: string + grpc-port: + description: 瀵瑰鎻愪緵鏈嶅姟grpc绔彛 type: string grpc-url: - description: grpc鏈嶅姟鍦板潃 + description: aps grpc鏈嶅姟鍦板潃 type: string - iplimit-count: - type: integer - iplimit-time: - type: integer - oss-type: - description: Oss绫诲瀷 + grpc-wms-url: + description: wms grpc鏈嶅姟鍦板潃 type: string router-prefix: type: string - use-multipoint: - description: 澶氱偣鐧诲綍鎷︽埅 - type: boolean - use-redis: - description: 浣跨敤redis - type: boolean - 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: @@ -593,111 +352,26 @@ 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: enum: - 1 - 2 - 3 - 4 + - 5 type: integer x-enum-comments: + OrderStatusCanceled: 宸插彇娑� OrderStatusCompleted: 宸插畬鎴� - OrderStatusConfirmed: 宸蹭笅鍗� - OrderStatusReceived: 宸插埌璐� + OrderStatusConfirmed: 寰呯‘璁� + OrderStatusReceived: 寰呭叆搴� OrderStatusStored: 宸插叆搴� x-enum-varnames: - OrderStatusConfirmed - OrderStatusReceived - OrderStatusStored - OrderStatusCompleted + - OrderStatusCanceled purchase.PriceAdjustmentType: enum: - 1 @@ -958,52 +632,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: @@ -1024,157 +652,41 @@ $ref: '#/definitions/test.Industry' type: array type: object - request.InitDB: + request.Product: properties: - dbName: - description: 鏁版嵁搴撳悕 + categoryName: 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: 椤电爜 + deliveryTime: type: integer - pageSize: - description: 姣忛〉澶у皬 + modelNumber: + type: string + name: + type: string + number: + type: string + purchasePrice: + type: number + shippingDuration: type: integer + specifications: + type: string + supplier: + type: string + supplierId: + type: integer + supplierName: + type: string + supplierNumber: + type: string + unit: + type: string type: object request.ProductCreate: properties: list: items: - $ref: '#/definitions/test.Product' + $ref: '#/definitions/request.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 +702,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 +711,6 @@ type: integer total: type: integer - type: object - response.PolicyPathResponse: - properties: - paths: - items: - $ref: '#/definitions/request.CasbinInfo' - type: array type: object response.PurchaseProducts: properties: @@ -1324,559 +765,6 @@ 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: properties: config: @@ -1924,46 +812,6 @@ uuid: type: string type: object - test.Product: - properties: - created_at: - type: string - deliveryTime: - type: integer - id: - description: 涓婚敭ID - type: integer - maximumStock: - type: integer - minimumStock: - type: integer - modelNumber: - type: string - name: - type: string - number: - type: string - productType: - type: string - purchasePrice: - type: number - remark: - type: string - shippingDuration: - type: integer - specifications: - type: string - supplier: - $ref: '#/definitions/test.Supplier' - supplierId: - type: integer - supplierName: - type: string - unit: - type: string - updated_at: - type: string - type: object test.Supplier: properties: account: @@ -2006,6 +854,45 @@ url: type: string type: object + test.SupplierMaterial: + properties: + categoryName: + description: 浜у搧绫诲埆鍚嶇О + type: string + created_at: + type: string + deliveryTime: + description: 渚涜揣鏃堕暱 + type: integer + id: + description: 涓婚敭ID + type: integer + maximumStock: + type: integer + minimumStock: + type: integer + modelNumber: + type: string + name: + type: string + number: + type: string + purchasePrice: + type: number + shippingDuration: + description: 鐗╂祦鏃堕暱 + type: integer + specifications: + type: string + supplier: + $ref: '#/definitions/test.Supplier' + supplierId: + type: integer + unit: + type: string + updated_at: + type: string + type: object test.SupplierType: properties: created_at: @@ -2024,1002 +911,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 +1157,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 +1327,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 +1563,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: @@ -4399,7 +1596,7 @@ name: data required: true schema: - $ref: '#/definitions/test.Product' + $ref: '#/definitions/request.GetById' produces: - application/json responses: @@ -4440,58 +1637,10 @@ consumes: - application/json parameters: - - in: query - name: created_at - type: string - - in: query - name: deliveryTime - type: integer - description: 涓婚敭ID in: query name: id type: integer - - in: query - name: maximumStock - type: integer - - in: query - name: minimumStock - type: integer - - in: query - name: modelNumber - type: string - - in: query - name: name - type: string - - in: query - name: number - type: string - - in: query - name: productType - type: string - - in: query - name: purchasePrice - type: number - - in: query - name: remark - type: string - - in: query - name: shippingDuration - type: integer - - in: query - name: specifications - type: string - - in: query - name: supplierId - type: integer - - in: query - name: supplierName - type: string - - in: query - name: unit - type: string - - in: query - name: updated_at - type: string produces: - application/json responses: @@ -4510,28 +1659,15 @@ - application/json parameters: - in: query - name: created_at + name: categoryName type: string - in: query name: deliveryTime - type: integer - - in: query - name: endCreatedAt - type: string - - description: 涓婚敭ID - in: query - name: id type: integer - description: 鍏抽敭瀛� in: query name: keyword type: string - - in: query - name: maximumStock - type: integer - - in: query - name: minimumStock - type: integer - in: query name: modelNumber type: string @@ -4550,14 +1686,8 @@ name: pageSize type: integer - in: query - name: productType - type: string - - in: query name: purchasePrice type: number - - in: query - name: remark - type: string - in: query name: shippingDuration type: integer @@ -4565,7 +1695,7 @@ name: specifications type: string - in: query - name: startCreatedAt + name: supplier type: string - in: query name: supplierId @@ -4578,9 +1708,6 @@ type: string - in: query name: unit - type: string - - in: query - name: updated_at type: string produces: - application/json @@ -4600,28 +1727,15 @@ - application/json parameters: - in: query - name: created_at + name: categoryName type: string - in: query name: deliveryTime - type: integer - - in: query - name: endCreatedAt - type: string - - description: 涓婚敭ID - in: query - name: id type: integer - description: 鍏抽敭瀛� in: query name: keyword type: string - - in: query - name: maximumStock - type: integer - - in: query - name: minimumStock - type: integer - in: query name: modelNumber type: string @@ -4640,14 +1754,8 @@ name: pageSize type: integer - in: query - name: productType - type: string - - in: query name: purchasePrice type: number - - in: query - name: remark - type: string - in: query name: shippingDuration type: integer @@ -4655,7 +1763,7 @@ name: specifications type: string - in: query - name: startCreatedAt + name: supplier type: string - in: query name: supplierId @@ -4668,9 +1776,6 @@ type: string - in: query name: unit - type: string - - in: query - name: updated_at type: string produces: - application/json @@ -4694,7 +1799,7 @@ name: data required: true schema: - $ref: '#/definitions/test.Product' + $ref: '#/definitions/test.SupplierMaterial' produces: - application/json responses: @@ -4834,6 +1939,10 @@ in: query name: pageSize type: integer + - description: 渚涘簲鍟唅d + in: query + name: supplierId + type: integer produces: - application/json responses: @@ -4925,6 +2034,10 @@ in: query name: pageSize type: integer + - description: 渚涘簲鍟唅d + in: query + name: supplierId + type: integer produces: - application/json responses: @@ -4944,30 +2057,7 @@ 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}: + /purchase/submit: post: consumes: - application/json @@ -5441,653 +2531,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 +2565,7 @@ - $ref: '#/definitions/response.Response' - properties: data: - $ref: '#/definitions/response.SysConfigResponse' + $ref: '#/definitions/system.System' msg: type: string type: object @@ -6176,284 +2619,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 -- Gitblit v1.8.0