2 Star 0 Fork 0

hero/momo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
access.go 2.56 KB
一键复制 编辑 原始数据 按行查看 历史
hero 提交于 2024-11-07 16:17 . fix:access
package schema
import "gitee.com/linqwen/momo/base"
type AccessCreateDTO struct {
Id string `gorm:"column:id;primaryKey" json:"Id" form:"Id" comment:"Id"`
UserId string `gorm:"column:user_id" json:"UserId" form:"UserId" comment:"UserId"`
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"`
Count int `gorm:"column:Count;type:int" json:"Count" form:"Count" comment:"Count"`
Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"`
Status int `gorm:"column:status;type:int" json:"Status"`
}
type AccessQueryDTO struct {
Id string `gorm:"column:id;primaryKey" json:"Id" form:"Id" comment:"Id"`
UserId string `gorm:"column:user_id" json:"UserId" form:"UserId" comment:"UserId"`
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"`
Ip string `gorm:"column:ip" json:"Ip" form:"Ip" comment:"Ip"`
Count int `gorm:"column:Count;type:int" json:"Count" form:"Count" comment:"Count"`
Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"`
Status int `gorm:"column:status;type:int" json:"Status"`
CreatedAt_datege string `gorm:"column:created_at_datege" json:"CreatedAt_datege" form:"CreatedAt_datege" comment:"CreatedAt_datege"`
CreatedAt_datele string `gorm:"column:created_at_datele" json:"CreatedAt_datele" form:"CreatedAt_datele" comment:"CreatedAt_datele"`
}
type AccessVO struct {
Id string `gorm:"column:id;primaryKey" json:"Id" form:"Id" comment:"Id"`
UserId string `gorm:"column:user_id" json:"UserId" form:"UserId" comment:"UserId"`
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"`
Ip string `gorm:"column:ip" json:"Ip" form:"Ip" comment:"Ip"`
Count int `gorm:"column:Count;type:int" json:"Count" form:"Count" comment:"Count"`
Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"`
Status int `gorm:"column:status;type:int" json:"Status"`
CreatedAt base.ISO8601Time
UpdatedAt base.ISO8601Time
}
func (c AccessVO) GetListVO() interface{} { return c }
func (c AccessVO) GetDetailVO() interface{} { return c }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/linqwen/momo.git
git@gitee.com:linqwen/momo.git
linqwen
momo
momo
v1.1.35

搜索帮助