Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梁国权
gin-vue-admin
提交
18fa4860
G
gin-vue-admin
项目概览
梁国权
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
18fa4860
编写于
8月 07, 2021
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
自动化代码 get类型接收参数修改为query
上级
614e6640
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
1495 addition
and
725 deletion
+1495
-725
server/api/v1/autocode/autocodeExample.go
server/api/v1/autocode/autocodeExample.go
+2
-2
server/api/v1/example/exa_customer.go
server/api/v1/example/exa_customer.go
+2
-2
server/api/v1/system/sys_dictionary.go
server/api/v1/system/sys_dictionary.go
+2
-2
server/api/v1/system/sys_dictionary_detail.go
server/api/v1/system/sys_dictionary_detail.go
+2
-2
server/api/v1/system/sys_operation_record.go
server/api/v1/system/sys_operation_record.go
+2
-2
server/docs/docs.go
server/docs/docs.go
+551
-256
server/docs/swagger.json
server/docs/swagger.json
+551
-256
server/docs/swagger.yaml
server/docs/swagger.yaml
+379
-199
server/resource/template/server/api.go.tpl
server/resource/template/server/api.go.tpl
+2
-2
server/resource/template/web/api.js.tpl
server/resource/template/web/api.js.tpl
+2
-2
未找到文件。
server/api/v1/autocode/autocodeExample.go
浏览文件 @
18fa4860
...
@@ -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
bod
y autocode.AutoCodeExample true "用id查询AutoCodeExample"
// @Param data
quer
y 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
bod
y autocodeReq.AutoCodeExampleSearch true "页码, 每页大小, 搜索条件"
// @Param data
quer
y 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
)
{
...
...
server/api/v1/example/exa_customer.go
浏览文件 @
18fa4860
...
@@ -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
bod
y example.ExaCustomer true "客户ID"
// @Param data
quer
y 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
bod
y request.PageInfo true "页码, 每页大小"
// @Param data
quer
y 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
)
{
...
...
server/api/v1/system/sys_dictionary.go
浏览文件 @
18fa4860
...
@@ -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
bod
y system.SysDictionary true "ID或字典英名"
// @Param data
quer
y 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
bod
y request.SysDictionarySearch true "页码, 每页大小, 搜索条件"
// @Param data
quer
y 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
)
{
...
...
server/api/v1/system/sys_dictionary_detail.go
浏览文件 @
18fa4860
...
@@ -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
bod
y system.SysDictionaryDetail true "用id查询SysDictionaryDetail"
// @Param data
quer
y 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
bod
y request.SysDictionaryDetailSearch true "页码, 每页大小, 搜索条件"
// @Param data
quer
y 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
)
{
...
...
server/api/v1/system/sys_operation_record.go
浏览文件 @
18fa4860
...
@@ -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
bod
y system.SysOperationRecord true "Id"
// @Param data
quer
y 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
bod
y request.SysOperationRecordSearch true "页码, 每页大小, 搜索条件"
// @Param data
quer
y 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
)
{
...
...
server/docs/docs.go
浏览文件 @
18fa4860
此差异已折叠。
点击以展开。
server/docs/swagger.json
浏览文件 @
18fa4860
此差异已折叠。
点击以展开。
server/docs/swagger.yaml
浏览文件 @
18fa4860
...
@@ -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.S
ysDictionarySearch
:
request.S
etUserAuthorities
:
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
:
...
...
server/resource/template/server/api.go.tpl
浏览文件 @
18fa4860
...
@@ -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
bod
y autocode.{{.StructName}} true "用id查询{{.StructName}}"
// @Param data
quer
y 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
bod
y autocodeReq.{{.StructName}}Search true "分页获取{{.StructName}}列表"
// @Param data
quer
y 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) {
...
...
server/resource/template/web/api.js.tpl
浏览文件 @
18fa4860
...
@@ -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
bod
y model.{{.StructName}} true "用id查询{{.StructName}}"
// @Param data
quer
y 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
bod
y request.PageInfo true "分页获取{{.StructName}}列表"
// @Param data
quer
y 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录