v2.5.1 beta2 (#1048)

* 修复日志中间件报文过大的报错问题

* 修复 Token 失效后导致的白屏问题

* 增加自动创建插件模板功能

* 密码加密方式改为 hash

* 增加刷新防抖

Co-authored-by: songzhibin97 <718428482@qq.com>
Co-authored-by: icedays <icedays@163.com>
Co-authored-by: hedeqiang <laravel_code@163.com>
This commit is contained in:
奇淼(piexlmax
2022-04-25 17:34:17 +08:00
committed by GitHub
parent 843e5a9ad4
commit 6add2094a6
42 changed files with 635 additions and 43 deletions

View File

@@ -17,8 +17,8 @@ type AutoCodeStruct struct {
AutoMoveFile bool `json:"autoMoveFile"` // 是否自动移动文件
Fields []*Field `json:"fields"`
DictTypes []string `json:"-"`
Package string `json:"package"`
PackageT string `json:"-"`
Package string `json:"package"`
PackageT string `json:"-"`
}
type Field struct {
@@ -38,6 +38,31 @@ var AutoMoveErr error = errors.New("创建代码成功并移动文件成功")
type SysAutoCode struct {
global.GVA_MODEL
PackageName string `json:"packageName" gorm:"comment:包名"`
Label string `json:"label" gorm:"comment:展示名"`
Label string `json:"label" gorm:"comment:展示名"`
Desc string `json:"desc" gorm:"comment:描述"`
}
type AutoPlugReq struct {
PlugName string `json:"plugName"` // 必然大写开头
Snake string `json:"snake"` // 后端自动转为 snake
RouterGroup string `json:"routerGroup"`
HasGlobal bool `json:"hasGlobal"`
HasRequest bool `json:"hasRequest"`
HasResponse bool `json:"hasResponse"`
NeedModel bool `json:"needModel"`
Global []struct {
Key string `json:"key"`
Type string `json:"type"`
Desc string `json:"desc"`
} `json:"global"`
Request []struct {
Key string `json:"key"`
Type string `json:"type"`
Desc string `json:"desc"`
} `json:"request"`
Response []struct {
Key string `json:"key"`
Type string `json:"type"`
Desc string `json:"desc"`
} `json:"response"`
}