Skip to content

Commit 200d905

Browse files
Merge branch 'i18n' of https://github.com/flipped-aurora/gin-vue-admin into i18n
2 parents fc11e47 + c4c54f1 commit 200d905

File tree

48 files changed

+4927
-296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4927
-296
lines changed

server/api/v1/system/sys_user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ func (b *BaseApi) ChangePassword(c *gin.Context) {
200200
// @Security ApiKeyAuth
201201
// @accept application/json
202202
// @Produce application/json
203-
// @Param data body request.PageInfo true "页码, 每页大小"
203+
// @Param data body systemReq.GetUserList true "页码, 每页大小"
204204
// @Success 200 {object} response.Response{data=response.PageResult,msg=string} "分页获取用户列表,返回包括列表,总数,页码,每页数量"
205205
// @Router /user/getUserList [post]
206206
func (b *BaseApi) GetUserList(c *gin.Context) {
207-
var pageInfo request.PageInfo
207+
var pageInfo systemReq.GetUserList
208208
err := c.ShouldBindJSON(&pageInfo)
209209
if err != nil {
210210
response.FailWithMessage(err.Error(), c)

server/core/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ func RunWindowsServer() {
3232
}
3333

3434
Router := initialize.Routers()
35-
Router.Static("/form-generator", "./resource/page")
3635

3736
address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr)
3837
s := initServer(address, Router)
@@ -41,7 +40,7 @@ func RunWindowsServer() {
4140

4241
fmt.Printf(`
4342
%s gin-vue-admin
44-
%s:v2.7.4
43+
%s:v2.7.5
4544
加群方式:微信号:shouzi_1994 QQ群:470239250
4645
项目地址:https://github.com/flipped-aurora/gin-vue-admin
4746
插件市场:https://plugin.gin-vue-admin.com

server/docs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8087,7 +8087,7 @@ const docTemplate = `{
80878087

80888088
// SwaggerInfo holds exported Swagger Info so clients can modify it
80898089
var SwaggerInfo = &swag.Spec{
8090-
Version: "v2.7.4",
8090+
Version: "v2.7.5",
80918091
Host: "",
80928092
BasePath: "",
80938093
Schemes: []string{},

server/docs/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "使用gin+vue进行极速开发的全栈开发基础平台",
55
"title": "Gin-Vue-Admin Swagger API接口文档",
66
"contact": {},
7-
"version": "v2.7.4"
7+
"version": "v2.7.5"
88
},
99
"paths": {
1010
"/api/createApi": {

server/docs/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ info:
16341634
contact: {}
16351635
description: 使用gin+vue进行极速开发的全栈开发基础平台
16361636
title: Gin-Vue-Admin Swagger API接口文档
1637-
version: v2.7.4
1637+
version: v2.7.5
16381638
paths:
16391639
/api/createApi:
16401640
post:

server/main.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package main
22

33
import (
4-
_ "go.uber.org/automaxprocs"
5-
"go.uber.org/zap"
6-
74
"github.com/flipped-aurora/gin-vue-admin/server/core"
85
"github.com/flipped-aurora/gin-vue-admin/server/global"
96
"github.com/flipped-aurora/gin-vue-admin/server/initialize"
7+
_ "go.uber.org/automaxprocs"
8+
"go.uber.org/zap"
109
"github.com/flipped-aurora/gin-vue-admin/server/utils/translate"
1110
)
1211

@@ -16,7 +15,7 @@ import (
1615
//go:generate go mod download
1716

1817
// @title Gin-Vue-Admin Swagger API接口文档
19-
// @version v2.7.4
18+
// @version v2.7.5
2019
// @description 使用gin+vue进行极速开发的全栈开发基础平台
2120
// @securityDefinitions.apikey ApiKeyAuth
2221
// @in header

server/model/system/request/sys_auto_code.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type AutoCode struct {
4343
}
4444

4545
type DataSource struct {
46+
DBName string `json:"dbName"`
4647
Table string `json:"table"`
4748
Label string `json:"label"`
4849
Value string `json:"value"`

server/model/system/request/sys_user.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package request
22

33
import (
4+
common "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
45
"github.com/flipped-aurora/gin-vue-admin/server/model/system"
56
)
67

@@ -54,3 +55,11 @@ type ChangeUserInfo struct {
5455
Enable int `json:"enable" gorm:"comment:冻结用户"` //冻结用户
5556
Authorities []system.SysAuthority `json:"-" gorm:"many2many:sys_user_authority;"`
5657
}
58+
59+
type GetUserList struct {
60+
common.PageInfo
61+
Username string `json:"username" form:"username"`
62+
NickName string `json:"nickName" form:"nickName"`
63+
Phone string `json:"phone" form:"phone"`
64+
Email string `json:"email" form:"email"`
65+
}

0 commit comments

Comments
 (0)