Skip to content

Commit fadc035

Browse files
author
奇淼(piexlmax
authored
Merge pull request flipped-aurora#592 from flipped-aurora/gva_gormv2_dev
Gva gormv2 dev
2 parents 1c07b5e + f55330d commit fadc035

19 files changed

+3639
-2473
lines changed

server/api/v1/example/exa_customer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type CustomerApi struct {
1919
// @Security ApiKeyAuth
2020
// @accept application/json
2121
// @Produce application/json
22-
// @Param data body model.ExaCustomer true "客户用户名, 客户手机号码"
22+
// @Param data body example.ExaCustomer true "客户用户名, 客户手机号码"
2323
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
2424
// @Router /customer/customer [post]
2525
func (e *CustomerApi) CreateExaCustomer(c *gin.Context) {
@@ -44,7 +44,7 @@ func (e *CustomerApi) CreateExaCustomer(c *gin.Context) {
4444
// @Security ApiKeyAuth
4545
// @accept application/json
4646
// @Produce application/json
47-
// @Param data body model.ExaCustomer true "客户ID"
47+
// @Param data body example.ExaCustomer true "客户ID"
4848
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
4949
// @Router /customer/customer [delete]
5050
func (e *CustomerApi) DeleteExaCustomer(c *gin.Context) {
@@ -67,7 +67,7 @@ func (e *CustomerApi) DeleteExaCustomer(c *gin.Context) {
6767
// @Security ApiKeyAuth
6868
// @accept application/json
6969
// @Produce application/json
70-
// @Param data body model.ExaCustomer true "客户ID, 客户信息"
70+
// @Param data body example.ExaCustomer true "客户ID, 客户信息"
7171
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
7272
// @Router /customer/customer [put]
7373
func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) {
@@ -94,7 +94,7 @@ func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) {
9494
// @Security ApiKeyAuth
9595
// @accept application/json
9696
// @Produce application/json
97-
// @Param data body model.ExaCustomer true "客户ID"
97+
// @Param data body example.ExaCustomer true "客户ID"
9898
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
9999
// @Router /customer/customer [get]
100100
func (e *CustomerApi) GetExaCustomer(c *gin.Context) {

server/api/v1/example/exa_excel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type ExcelApi struct {
2222
// @Security ApiKeyAuth
2323
// @accept application/json
2424
// @Produce application/octet-stream
25-
// @Param data body model.ExcelInfo true "导出Excel文件信息"
25+
// @Param data body example.ExcelInfo true "导出Excel文件信息"
2626
// @Success 200
2727
// @Router /excel/exportExcel [post]
2828
func (e *ExcelApi) ExportExcel(c *gin.Context) {

server/api/v1/example/exa_file_upload_download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
4343
// @Summary 删除文件
4444
// @Security ApiKeyAuth
4545
// @Produce application/json
46-
// @Param data body model.ExaFileUploadAndDownload true "传入文件里面id即可"
46+
// @Param data body example.ExaFileUploadAndDownload true "传入文件里面id即可"
4747
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
4848
// @Router /fileUploadAndDownload/deleteFile [post]
4949
func (u *FileUploadAndDownloadApi) DeleteFile(c *gin.Context) {

server/api/v1/system/sys_api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type SystemApiApi struct {
2121
// @Security ApiKeyAuth
2222
// @accept application/json
2323
// @Produce application/json
24-
// @Param data body model.SysApi true "api路径, api中文描述, api组, 方法"
24+
// @Param data body system.SysApi true "api路径, api中文描述, api组, 方法"
2525
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
2626
// @Router /api/createApi [post]
2727
func (s *SystemApiApi) CreateApi(c *gin.Context) {
@@ -44,7 +44,7 @@ func (s *SystemApiApi) CreateApi(c *gin.Context) {
4444
// @Security ApiKeyAuth
4545
// @accept application/json
4646
// @Produce application/json
47-
// @Param data body model.SysApi true "ID"
47+
// @Param data body system.SysApi true "ID"
4848
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
4949
// @Router /api/deleteApi [post]
5050
func (s *SystemApiApi) DeleteApi(c *gin.Context) {
@@ -119,7 +119,7 @@ func (s *SystemApiApi) GetApiById(c *gin.Context) {
119119
// @Security ApiKeyAuth
120120
// @accept application/json
121121
// @Produce application/json
122-
// @Param data body model.SysApi true "api路径, api中文描述, api组, 方法"
122+
// @Param data body system.SysApi true "api路径, api中文描述, api组, 方法"
123123
// @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}"
124124
// @Router /api/updateApi [post]
125125
func (s *SystemApiApi) UpdateApi(c *gin.Context) {

server/api/v1/system/sys_authority.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (a *AuthorityApi) CopyAuthority(c *gin.Context) {
7373
// @Security ApiKeyAuth
7474
// @accept application/json
7575
// @Produce application/json
76-
// @Param data body model.SysAuthority true "删除角色"
76+
// @Param data body system.SysAuthority true "删除角色"
7777
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
7878
// @Router /authority/deleteAuthority [post]
7979
func (a *AuthorityApi) DeleteAuthority(c *gin.Context) {
@@ -96,7 +96,7 @@ func (a *AuthorityApi) DeleteAuthority(c *gin.Context) {
9696
// @Security ApiKeyAuth
9797
// @accept application/json
9898
// @Produce application/json
99-
// @Param data body model.SysAuthority true "权限id, 权限名, 父角色id"
99+
// @Param data body system.SysAuthority true "权限id, 权限名, 父角色id"
100100
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
101101
// @Router /authority/updateAuthority [post]
102102
func (a *AuthorityApi) UpdateAuthority(c *gin.Context) {
@@ -147,7 +147,7 @@ func (a *AuthorityApi) GetAuthorityList(c *gin.Context) {
147147
// @Security ApiKeyAuth
148148
// @accept application/json
149149
// @Produce application/json
150-
// @Param data body model.SysAuthority true "设置角色资源权限"
150+
// @Param data body system.SysAuthority true "设置角色资源权限"
151151
// @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}"
152152
// @Router /authority/setDataAuthority [post]
153153
func (a *AuthorityApi) SetDataAuthority(c *gin.Context) {

server/api/v1/system/sys_auto_code.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (autoApi *AutoCodeApi) GetMeta(c *gin.Context) {
106106
// @Security ApiKeyAuth
107107
// @accept application/json
108108
// @Produce application/json
109-
// @Param data body model.AutoCodeStruct true "预览创建代码"
109+
// @Param data body system.AutoCodeStruct true "预览创建代码"
110110
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
111111
// @Router /autoCode/preview [post]
112112
func (autoApi *AutoCodeApi) PreviewTemp(c *gin.Context) {
@@ -130,7 +130,7 @@ func (autoApi *AutoCodeApi) PreviewTemp(c *gin.Context) {
130130
// @Security ApiKeyAuth
131131
// @accept application/json
132132
// @Produce application/json
133-
// @Param data body model.AutoCodeStruct true "创建自动代码"
133+
// @Param data body system.AutoCodeStruct true "创建自动代码"
134134
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
135135
// @Router /autoCode/createTemp [post]
136136
func (autoApi *AutoCodeApi) CreateTemp(c *gin.Context) {

server/api/v1/system/sys_dictionary.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type DictionaryApi struct {
1818
// @Security ApiKeyAuth
1919
// @accept application/json
2020
// @Produce application/json
21-
// @Param data body model.SysDictionary true "SysDictionary模型"
21+
// @Param data body system.SysDictionary true "SysDictionary模型"
2222
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
2323
// @Router /sysDictionary/createSysDictionary [post]
2424
func (s *DictionaryApi) CreateSysDictionary(c *gin.Context) {
@@ -37,7 +37,7 @@ func (s *DictionaryApi) CreateSysDictionary(c *gin.Context) {
3737
// @Security ApiKeyAuth
3838
// @accept application/json
3939
// @Produce application/json
40-
// @Param data body model.SysDictionary true "SysDictionary模型"
40+
// @Param data body system.SysDictionary true "SysDictionary模型"
4141
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
4242
// @Router /sysDictionary/deleteSysDictionary [delete]
4343
func (s *DictionaryApi) DeleteSysDictionary(c *gin.Context) {
@@ -56,7 +56,7 @@ func (s *DictionaryApi) DeleteSysDictionary(c *gin.Context) {
5656
// @Security ApiKeyAuth
5757
// @accept application/json
5858
// @Produce application/json
59-
// @Param data body model.SysDictionary true "SysDictionary模型"
59+
// @Param data body system.SysDictionary true "SysDictionary模型"
6060
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
6161
// @Router /sysDictionary/updateSysDictionary [put]
6262
func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context) {
@@ -75,7 +75,7 @@ func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context) {
7575
// @Security ApiKeyAuth
7676
// @accept application/json
7777
// @Produce application/json
78-
// @Param data body model.SysDictionary true "ID或字典英名"
78+
// @Param data body system.SysDictionary true "ID或字典英名"
7979
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
8080
// @Router /sysDictionary/findSysDictionary [get]
8181
func (s *DictionaryApi) FindSysDictionary(c *gin.Context) {

server/api/v1/system/sys_dictionary_detail.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type DictionaryDetailApi struct {
1818
// @Security ApiKeyAuth
1919
// @accept application/json
2020
// @Produce application/json
21-
// @Param data body model.SysDictionaryDetail true "SysDictionaryDetail模型"
21+
// @Param data body system.SysDictionaryDetail true "SysDictionaryDetail模型"
2222
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
2323
// @Router /sysDictionaryDetail/createSysDictionaryDetail [post]
2424
func (s *DictionaryDetailApi) CreateSysDictionaryDetail(c *gin.Context) {
@@ -37,7 +37,7 @@ func (s *DictionaryDetailApi) CreateSysDictionaryDetail(c *gin.Context) {
3737
// @Security ApiKeyAuth
3838
// @accept application/json
3939
// @Produce application/json
40-
// @Param data body model.SysDictionaryDetail true "SysDictionaryDetail模型"
40+
// @Param data body system.SysDictionaryDetail true "SysDictionaryDetail模型"
4141
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
4242
// @Router /sysDictionaryDetail/deleteSysDictionaryDetail [delete]
4343
func (s *DictionaryDetailApi) DeleteSysDictionaryDetail(c *gin.Context) {
@@ -56,7 +56,7 @@ func (s *DictionaryDetailApi) DeleteSysDictionaryDetail(c *gin.Context) {
5656
// @Security ApiKeyAuth
5757
// @accept application/json
5858
// @Produce application/json
59-
// @Param data body model.SysDictionaryDetail true "更新SysDictionaryDetail"
59+
// @Param data body system.SysDictionaryDetail true "更新SysDictionaryDetail"
6060
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
6161
// @Router /sysDictionaryDetail/updateSysDictionaryDetail [put]
6262
func (s *DictionaryDetailApi) UpdateSysDictionaryDetail(c *gin.Context) {
@@ -75,7 +75,7 @@ func (s *DictionaryDetailApi) UpdateSysDictionaryDetail(c *gin.Context) {
7575
// @Security ApiKeyAuth
7676
// @accept application/json
7777
// @Produce application/json
78-
// @Param data body model.SysDictionaryDetail true "用id查询SysDictionaryDetail"
78+
// @Param data body system.SysDictionaryDetail true "用id查询SysDictionaryDetail"
7979
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
8080
// @Router /sysDictionaryDetail/findSysDictionaryDetail [get]
8181
func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) {

server/api/v1/system/sys_menu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context) {
102102
// @Security ApiKeyAuth
103103
// @accept application/json
104104
// @Produce application/json
105-
// @Param data body model.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记"
105+
// @Param data body system.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记"
106106
// @Success 200 {string} string "{"success":true,"data":{},"msg":"添加成功"}"
107107
// @Router /menu/addBaseMenu [post]
108108
func (a *AuthorityMenuApi) AddBaseMenu(c *gin.Context) {
@@ -153,7 +153,7 @@ func (a *AuthorityMenuApi) DeleteBaseMenu(c *gin.Context) {
153153
// @Security ApiKeyAuth
154154
// @accept application/json
155155
// @Produce application/json
156-
// @Param data body model.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记"
156+
// @Param data body system.SysBaseMenu true "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记"
157157
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
158158
// @Router /menu/updateBaseMenu [post]
159159
func (a *AuthorityMenuApi) UpdateBaseMenu(c *gin.Context) {

server/api/v1/system/sys_operation_record.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type OperationRecordApi struct {
1919
// @Security ApiKeyAuth
2020
// @accept application/json
2121
// @Produce application/json
22-
// @Param data body model.SysOperationRecord true "创建SysOperationRecord"
22+
// @Param data body system.SysOperationRecord true "创建SysOperationRecord"
2323
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
2424
// @Router /sysOperationRecord/createSysOperationRecord [post]
2525
func (s *OperationRecordApi) CreateSysOperationRecord(c *gin.Context) {
@@ -38,7 +38,7 @@ func (s *OperationRecordApi) CreateSysOperationRecord(c *gin.Context) {
3838
// @Security ApiKeyAuth
3939
// @accept application/json
4040
// @Produce application/json
41-
// @Param data body model.SysOperationRecord true "SysOperationRecord模型"
41+
// @Param data body system.SysOperationRecord true "SysOperationRecord模型"
4242
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
4343
// @Router /sysOperationRecord/deleteSysOperationRecord [delete]
4444
func (s *OperationRecordApi) DeleteSysOperationRecord(c *gin.Context) {
@@ -76,7 +76,7 @@ func (s *OperationRecordApi) DeleteSysOperationRecordByIds(c *gin.Context) {
7676
// @Security ApiKeyAuth
7777
// @accept application/json
7878
// @Produce application/json
79-
// @Param data body model.SysOperationRecord true "Id"
79+
// @Param data body system.SysOperationRecord true "Id"
8080
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
8181
// @Router /sysOperationRecord/findSysOperationRecord [get]
8282
func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) {

server/api/v1/system/sys_system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (s *SystemApi) GetSystemConfig(c *gin.Context) {
3333
// @Summary 设置配置文件内容
3434
// @Security ApiKeyAuth
3535
// @Produce application/json
36-
// @Param data body model.System true "设置配置文件内容"
36+
// @Param data body system.System true "设置配置文件内容"
3737
// @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}"
3838
// @Router /system/setSystemConfig [post]
3939
func (s *SystemApi) SetSystemConfig(c *gin.Context) {

server/api/v1/system/sys_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func (b *BaseApi) DeleteUser(c *gin.Context) {
236236
// @Security ApiKeyAuth
237237
// @accept application/json
238238
// @Produce application/json
239-
// @Param data body model.SysUser true "ID, 用户名, 昵称, 头像链接"
239+
// @Param data body system.SysUser true "ID, 用户名, 昵称, 头像链接"
240240
// @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}"
241241
// @Router /user/setUserInfo [put]
242242
func (b *BaseApi) SetUserInfo(c *gin.Context) {

0 commit comments

Comments
 (0)