提交 18fa4860 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

自动化代码 get类型接收参数修改为query

上级 614e6640
...@@ -78,7 +78,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) UpdateAutoCodeExample(c *gin.Conte ...@@ -78,7 +78,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) UpdateAutoCodeExample(c *gin.Conte
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body autocode.AutoCodeExample true "用id查询AutoCodeExample" // @Param data query autocode.AutoCodeExample true "用id查询AutoCodeExample"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /autoCodeExample/findAutoCodeExample [get] // @Router /autoCodeExample/findAutoCodeExample [get]
func (autoCodeExampleApi *AutoCodeExampleApi) FindAutoCodeExample(c *gin.Context) { func (autoCodeExampleApi *AutoCodeExampleApi) FindAutoCodeExample(c *gin.Context) {
...@@ -101,7 +101,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) FindAutoCodeExample(c *gin.Context ...@@ -101,7 +101,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) FindAutoCodeExample(c *gin.Context
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body autocodeReq.AutoCodeExampleSearch true "页码, 每页大小, 搜索条件" // @Param data query autocodeReq.AutoCodeExampleSearch true "页码, 每页大小, 搜索条件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /autoCodeExample/getAutoCodeExampleList [get] // @Router /autoCodeExample/getAutoCodeExampleList [get]
func (autoCodeExampleApi *AutoCodeExampleApi) GetAutoCodeExampleList(c *gin.Context) { func (autoCodeExampleApi *AutoCodeExampleApi) GetAutoCodeExampleList(c *gin.Context) {
......
...@@ -94,7 +94,7 @@ func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) { ...@@ -94,7 +94,7 @@ func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body example.ExaCustomer true "客户ID" // @Param data query example.ExaCustomer true "客户ID"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /customer/customer [get] // @Router /customer/customer [get]
func (e *CustomerApi) GetExaCustomer(c *gin.Context) { func (e *CustomerApi) GetExaCustomer(c *gin.Context) {
...@@ -118,7 +118,7 @@ func (e *CustomerApi) GetExaCustomer(c *gin.Context) { ...@@ -118,7 +118,7 @@ func (e *CustomerApi) GetExaCustomer(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body request.PageInfo true "页码, 每页大小" // @Param data query request.PageInfo true "页码, 每页大小"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /customer/customerList [get] // @Router /customer/customerList [get]
func (e *CustomerApi) GetExaCustomerList(c *gin.Context) { func (e *CustomerApi) GetExaCustomerList(c *gin.Context) {
......
...@@ -75,7 +75,7 @@ func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context) { ...@@ -75,7 +75,7 @@ func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body system.SysDictionary true "ID或字典英名" // @Param data query system.SysDictionary true "ID或字典英名"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysDictionary/findSysDictionary [get] // @Router /sysDictionary/findSysDictionary [get]
func (s *DictionaryApi) FindSysDictionary(c *gin.Context) { func (s *DictionaryApi) FindSysDictionary(c *gin.Context) {
...@@ -94,7 +94,7 @@ func (s *DictionaryApi) FindSysDictionary(c *gin.Context) { ...@@ -94,7 +94,7 @@ func (s *DictionaryApi) FindSysDictionary(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body request.SysDictionarySearch true "页码, 每页大小, 搜索条件" // @Param data query request.SysDictionarySearch true "页码, 每页大小, 搜索条件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysDictionary/getSysDictionaryList [get] // @Router /sysDictionary/getSysDictionaryList [get]
func (s *DictionaryApi) GetSysDictionaryList(c *gin.Context) { func (s *DictionaryApi) GetSysDictionaryList(c *gin.Context) {
......
...@@ -75,7 +75,7 @@ func (s *DictionaryDetailApi) UpdateSysDictionaryDetail(c *gin.Context) { ...@@ -75,7 +75,7 @@ func (s *DictionaryDetailApi) UpdateSysDictionaryDetail(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body system.SysDictionaryDetail true "用id查询SysDictionaryDetail" // @Param data query system.SysDictionaryDetail true "用id查询SysDictionaryDetail"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysDictionaryDetail/findSysDictionaryDetail [get] // @Router /sysDictionaryDetail/findSysDictionaryDetail [get]
func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) { func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) {
...@@ -98,7 +98,7 @@ func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) { ...@@ -98,7 +98,7 @@ func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body request.SysDictionaryDetailSearch true "页码, 每页大小, 搜索条件" // @Param data query request.SysDictionaryDetailSearch true "页码, 每页大小, 搜索条件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysDictionaryDetail/getSysDictionaryDetailList [get] // @Router /sysDictionaryDetail/getSysDictionaryDetailList [get]
func (s *DictionaryDetailApi) GetSysDictionaryDetailList(c *gin.Context) { func (s *DictionaryDetailApi) GetSysDictionaryDetailList(c *gin.Context) {
......
...@@ -76,7 +76,7 @@ func (s *OperationRecordApi) DeleteSysOperationRecordByIds(c *gin.Context) { ...@@ -76,7 +76,7 @@ func (s *OperationRecordApi) DeleteSysOperationRecordByIds(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body system.SysOperationRecord true "Id" // @Param data query system.SysOperationRecord true "Id"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysOperationRecord/findSysOperationRecord [get] // @Router /sysOperationRecord/findSysOperationRecord [get]
func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) { func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) {
...@@ -99,7 +99,7 @@ func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) { ...@@ -99,7 +99,7 @@ func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body request.SysOperationRecordSearch true "页码, 每页大小, 搜索条件" // @Param data query request.SysOperationRecordSearch true "页码, 每页大小, 搜索条件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysOperationRecord/getSysOperationRecordList [get] // @Router /sysOperationRecord/getSysOperationRecordList [get]
func (s *OperationRecordApi) GetSysOperationRecordList(c *gin.Context) { func (s *OperationRecordApi) GetSysOperationRecordList(c *gin.Context) {
......
此差异已折叠。
此差异已折叠。
...@@ -387,27 +387,6 @@ definitions: ...@@ -387,27 +387,6 @@ definitions:
$ref: '#/definitions/system.SysBaseMenu' $ref: '#/definitions/system.SysBaseMenu'
type: array type: array
type: object type: object
request.AutoCodeExampleSearch:
properties:
autoCodeExampleField:
description: 展示值
type: string
createdAt:
description: 创建时间
type: string
id:
description: 主键ID
type: integer
page:
description: 页码
type: integer
pageSize:
description: 每页大小
type: integer
updatedAt:
description: 更新时间
type: string
type: object
request.AutoHistoryByID: request.AutoHistoryByID:
properties: properties:
id: id:
...@@ -514,6 +493,10 @@ definitions: ...@@ -514,6 +493,10 @@ definitions:
properties: properties:
authorityId: authorityId:
type: string type: string
authorityIds:
items:
type: string
type: array
headerImg: headerImg:
type: string type: string
nickName: nickName:
...@@ -564,135 +547,25 @@ definitions: ...@@ -564,135 +547,25 @@ definitions:
authorityId: authorityId:
description: 角色ID description: 角色ID
type: string type: string
uuid:
description: 用户UUID
type: string
type: object
request.SysAutoHistory:
properties:
page:
description: 页码
type: integer
pageSize:
description: 每页大小
type: integer
type: object
request.SysDictionaryDetailSearch:
properties:
createdAt:
description: 创建时间
type: string
id:
description: 主键ID
type: integer
label:
description: 展示值
type: string
page:
description: 页码
type: integer
pageSize:
description: 每页大小
type: integer
sort:
description: 排序标记
type: integer
status:
description: 启用状态
type: boolean
sysDictionaryID:
description: 关联标记
type: integer
updatedAt:
description: 更新时间
type: string
value:
description: 字典值
type: integer
type: object type: object
request.SysDictionarySearch: request.SetUserAuthorities:
properties: properties:
createdAt: authorityIds:
description: 创建时间 description: 角色ID
type: string
desc:
description: 描述
type: string
id:
description: 主键ID
type: integer
name:
description: 字典名(中)
type: string
page:
description: 页码
type: integer
pageSize:
description: 每页大小
type: integer
status:
description: 状态
type: boolean
sysDictionaryDetails:
items: items:
$ref: '#/definitions/system.SysDictionaryDetail' type: string
type: array type: array
type:
description: 字典名(英)
type: string
updatedAt:
description: 更新时间
type: string
type: object
request.SysOperationRecordSearch:
properties:
agent:
description: 代理
type: string
body:
description: 请求Body
type: string
createdAt:
description: 创建时间
type: string
error_message:
description: 错误信息
type: string
id: id:
description: 主键ID
type: integer type: integer
ip: type: object
description: 请求ip request.SysAutoHistory:
type: string properties:
latency:
description: 延迟
type: string
method:
description: 请求方法
type: string
page: page:
description: 页码 description: 页码
type: integer type: integer
pageSize: pageSize:
description: 每页大小 description: 每页大小
type: integer type: integer
path:
description: 请求路径
type: string
resp:
description: 响应Body
type: string
status:
description: 请求状态
type: integer
updatedAt:
description: 更新时间
type: string
user:
$ref: '#/definitions/system.SysUser'
user_id:
description: 用户id
type: integer
type: object type: object
response.SysAuthorityCopyResponse: response.SysAuthorityCopyResponse:
properties: properties:
...@@ -1009,6 +882,10 @@ definitions: ...@@ -1009,6 +882,10 @@ definitions:
activeColor: activeColor:
description: 活跃颜色 description: 活跃颜色
type: string type: string
authorities:
items:
$ref: '#/definitions/system.SysAuthority'
type: array
authority: authority:
$ref: '#/definitions/system.SysAuthority' $ref: '#/definitions/system.SysAuthority'
authorityId: authorityId:
...@@ -1644,12 +1521,22 @@ paths: ...@@ -1644,12 +1521,22 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 用id查询AutoCodeExample - description: 展示值
in: body in: query
name: data name: autoCodeExampleField
required: true type: string
schema: - description: 创建时间
$ref: '#/definitions/autocode.AutoCodeExample' in: query
name: createdAt
type: string
- description: 主键ID
in: query
name: id
type: integer
- description: 更新时间
in: query
name: updatedAt
type: string
produces: produces:
- application/json - application/json
responses: responses:
...@@ -1667,12 +1554,30 @@ paths: ...@@ -1667,12 +1554,30 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 页码, 每页大小, 搜索条件 - description: 展示值
in: body in: query
name: data name: autoCodeExampleField
required: true type: string
schema: - description: 创建时间
$ref: '#/definitions/request.AutoCodeExampleSearch' in: query
name: createdAt
type: string
- description: 主键ID
in: query
name: id
type: integer
- description: 页码
in: query
name: page
type: integer
- description: 每页大小
in: query
name: pageSize
type: integer
- description: 更新时间
in: query
name: updatedAt
type: string
produces: produces:
- application/json - application/json
responses: responses:
...@@ -1816,12 +1721,34 @@ paths: ...@@ -1816,12 +1721,34 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 客户ID - description: 创建时间
in: body in: query
name: data name: createdAt
required: true type: string
schema: - description: 客户名
$ref: '#/definitions/example.ExaCustomer' 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: string
- description: 管理ID
in: query
name: sysUserId
type: integer
- description: 更新时间
in: query
name: updatedAt
type: string
produces: produces:
- application/json - application/json
responses: responses:
...@@ -1883,12 +1810,14 @@ paths: ...@@ -1883,12 +1810,14 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 页码, 每页大小 - description: 页码
in: body in: query
name: data name: page
required: true type: integer
schema: - description: 每页大小
$ref: '#/definitions/request.PageInfo' in: query
name: pageSize
type: integer
produces: produces:
- application/json - application/json
responses: responses:
...@@ -2425,12 +2354,34 @@ paths: ...@@ -2425,12 +2354,34 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: ID或字典英名 - description: 创建时间
in: body in: query
name: data name: createdAt
required: true type: string
schema: - description: 描述
$ref: '#/definitions/system.SysDictionary' 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
- description: 更新时间
in: query
name: updatedAt
type: string
produces: produces:
- application/json - application/json
responses: responses:
...@@ -2448,12 +2399,42 @@ paths: ...@@ -2448,12 +2399,42 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 页码, 每页大小, 搜索条件 - description: 创建时间
in: body in: query
name: data name: createdAt
required: true type: string
schema: - description: 描述
$ref: '#/definitions/request.SysDictionarySearch' 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: page
type: integer
- description: 每页大小
in: query
name: pageSize
type: integer
- description: 状态
in: query
name: status
type: boolean
- description: 字典名(英)
in: query
name: type
type: string
- description: 更新时间
in: query
name: updatedAt
type: string
produces: produces:
- application/json - application/json
responses: responses:
...@@ -2540,12 +2521,38 @@ paths: ...@@ -2540,12 +2521,38 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 用id查询SysDictionaryDetail - description: 创建时间
in: body in: query
name: data name: createdAt
required: true type: string
schema: - description: 主键ID
$ref: '#/definitions/system.SysDictionaryDetail' 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
- description: 更新时间
in: query
name: updatedAt
type: string
- description: 字典值
in: query
name: value
type: integer
produces: produces:
- application/json - application/json
responses: responses:
...@@ -2563,12 +2570,46 @@ paths: ...@@ -2563,12 +2570,46 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 页码, 每页大小, 搜索条件 - description: 创建时间
in: body in: query
name: data name: createdAt
required: true type: string
schema: - description: 主键ID
$ref: '#/definitions/request.SysDictionaryDetailSearch' in: query
name: id
type: integer
- 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
- description: 更新时间
in: query
name: updatedAt
type: string
- description: 字典值
in: query
name: value
type: integer
produces: produces:
- application/json - application/json
responses: responses:
...@@ -2678,12 +2719,58 @@ paths: ...@@ -2678,12 +2719,58 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: Id - description: 代理
in: body in: query
name: data name: agent
required: true type: string
schema: - description: 请求Body
$ref: '#/definitions/system.SysOperationRecord' in: query
name: body
type: string
- description: 创建时间
in: query
name: createdAt
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
- description: 更新时间
in: query
name: updatedAt
type: string
- description: 用户id
in: query
name: user_id
type: integer
produces: produces:
- application/json - application/json
responses: responses:
...@@ -2701,12 +2788,66 @@ paths: ...@@ -2701,12 +2788,66 @@ paths:
consumes: consumes:
- application/json - application/json
parameters: parameters:
- description: 页码, 每页大小, 搜索条件 - description: 代理
in: body in: query
name: data name: agent
required: true type: string
schema: - description: 请求Body
$ref: '#/definitions/request.SysOperationRecordSearch' in: query
name: body
type: string
- description: 创建时间
in: query
name: createdAt
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: 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
- description: 更新时间
in: query
name: updatedAt
type: string
- description: 用户id
in: query
name: user_id
type: integer
produces: produces:
- application/json - application/json
responses: responses:
...@@ -2826,6 +2967,22 @@ paths: ...@@ -2826,6 +2967,22 @@ paths:
summary: 删除用户 summary: 删除用户
tags: tags:
- SysUser - SysUser
/user/getUserInfo:
get:
consumes:
- application/json
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"获取成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 获取用户信息
tags:
- SysUser
/user/getUserList: /user/getUserList:
post: post:
consumes: consumes:
...@@ -2868,6 +3025,29 @@ paths: ...@@ -2868,6 +3025,29 @@ paths:
summary: 用户注册账号 summary: 用户注册账号
tags: tags:
- SysUser - 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: '{"success":true,"data":{},"msg":"修改成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 设置用户权限
tags:
- SysUser
/user/setUserAuthority: /user/setUserAuthority:
post: post:
consumes: consumes:
...@@ -2888,7 +3068,7 @@ paths: ...@@ -2888,7 +3068,7 @@ paths:
type: string type: string
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: 设置用户权限 summary: 更改用户权限
tags: tags:
- SysUser - SysUser
/user/setUserInfo: /user/setUserInfo:
......
...@@ -103,7 +103,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Update{{.StructName}}(c *gin.Con ...@@ -103,7 +103,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Update{{.StructName}}(c *gin.Con
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body autocode.{{.StructName}} true "用id查询{{.StructName}}" // @Param data query autocode.{{.StructName}} true "用id查询{{.StructName}}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /{{.Abbreviation}}/find{{.StructName}} [get] // @Router /{{.Abbreviation}}/find{{.StructName}} [get]
func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Context) { func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Context) {
...@@ -123,7 +123,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Conte ...@@ -123,7 +123,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Conte
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body autocodeReq.{{.StructName}}Search true "分页获取{{.StructName}}列表" // @Param data query autocodeReq.{{.StructName}}Search true "分页获取{{.StructName}}列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /{{.Abbreviation}}/get{{.StructName}}List [get] // @Router /{{.Abbreviation}}/get{{.StructName}}List [get]
func ({{.Abbreviation}}Api *{{.StructName}}Api) Get{{.StructName}}List(c *gin.Context) { func ({{.Abbreviation}}Api *{{.StructName}}Api) Get{{.StructName}}List(c *gin.Context) {
......
...@@ -69,7 +69,7 @@ export const update{{.StructName}} = (data) => { ...@@ -69,7 +69,7 @@ export const update{{.StructName}} = (data) => {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body model.{{.StructName}} true "用id查询{{.StructName}}" // @Param data query model.{{.StructName}} true "用id查询{{.StructName}}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /{{.Abbreviation}}/find{{.StructName}} [get] // @Router /{{.Abbreviation}}/find{{.StructName}} [get]
export const find{{.StructName}} = (params) => { export const find{{.StructName}} = (params) => {
...@@ -85,7 +85,7 @@ export const find{{.StructName}} = (params) => { ...@@ -85,7 +85,7 @@ export const find{{.StructName}} = (params) => {
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @accept application/json // @accept application/json
// @Produce application/json // @Produce application/json
// @Param data body request.PageInfo true "分页获取{{.StructName}}列表" // @Param data query request.PageInfo true "分页获取{{.StructName}}列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /{{.Abbreviation}}/get{{.StructName}}List [get] // @Router /{{.Abbreviation}}/get{{.StructName}}List [get]
export const get{{.StructName}}List = (params) => { export const get{{.StructName}}List = (params) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册