refactor: 后端路由定义方式&请求参数绑定重构

This commit is contained in:
meilin.huang
2023-07-08 20:05:55 +08:00
parent 183a6e4905
commit 3269dfa5d6
59 changed files with 559 additions and 1020 deletions

View File

@@ -0,0 +1,7 @@
package entity
type SysLogQuery struct {
CreatorId uint64 `json:"creatorId" form:"creatorId"`
Type int8 `json:"type" form:"type"`
Description string `json:"description" form:"description"`
}

View File

@@ -3,7 +3,7 @@ package entity
import "time"
// 系统操作日志
type Syslog struct {
type SysLog struct {
Id uint64 `json:"id"`
CreateTime time.Time `json:"createTime"`
CreatorId uint64 `json:"creatorId"`
@@ -15,7 +15,7 @@ type Syslog struct {
Resp string `json:"resp"` // 响应结构
}
func (a *Syslog) TableName() string {
func (a *SysLog) TableName() string {
return "t_sys_log"
}