swag中id错误问题的修复 (#1589)

* model.go: fix swagger请求的id问题

* 验证码逻辑修回

---------

Co-authored-by: yang hao <1013055366@qq.com>
This commit is contained in:
奇淼(piexlmax
2023-12-05 23:01:27 +08:00
committed by GitHub
parent d42958734f
commit f98fc6bf3c
2 changed files with 3 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ import (
)
type GVA_MODEL struct {
ID uint `gorm:"primarykey"` // 主键ID
ID uint `gorm:"primarykey" json:"ID"` // 主键ID
CreatedAt time.Time // 创建时间
UpdatedAt time.Time // 更新时间
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间