2 Star 0 Fork 0

hero/momo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
accessctl.go 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
hero 提交于 2024-11-04 11:45 . upd:目录结构调整
package schema
type AccessctlCreateDTO struct {
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Ips string `gorm:"column:ips" json:"Ips" form:"Ips" comment:"Ips"`
Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"`
Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"`
Status int `gorm:"column:status;type:int" json:"Status"`
}
type AccessctlQueryDTO struct {
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Ips string `gorm:"column:ips" json:"Ips" form:"Ips" comment:"Ips"`
Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"`
Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"`
Status int `gorm:"column:status;type:int" json:"Status"`
}
type AccessctlVO struct {
Id int64 `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Ips string `gorm:"column:ips" json:"Ips" form:"Ips" comment:"Ips"`
Access int `gorm:"column:access" json:"Access" form:"Access" comment:"Access"`
Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"`
Status int `gorm:"column:status;type:int" json:"Status"`
}
func (c AccessctlVO) GetListVO() interface{} { return c }
func (c AccessctlVO) GetDetailVO() interface{} { return c }
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/linqwen/momo.git
git@gitee.com:linqwen/momo.git
linqwen
momo
momo
v1.0.7

搜索帮助

0d507c66 1850385 C8b1a773 1850385