修正返回数据大小写问题

This commit is contained in:
2023-07-03 11:53:31 +08:00
parent 3a99ce1b58
commit 38094bf106
4 changed files with 26 additions and 7 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ type AdminUser struct {
PostID int64 `gorm:"column:post_id;type:bigint(19);comment:'岗位id'" json:"post_id"`
CreateBy int64 `gorm:"column:create_by;type:bigint(19);comment:'创建者id(用户表id'" json:"create_by"`
UpdateBy int64 `gorm:"column:update_by;type:bigint(19);comment:'更新者id(用户表id'" json:"update_by"`
Role *AdminRole `gorm:"foreignKey:RoleID"` // 角色
Dept *AdminDept `gorm:"foreignKey:DeptID"` // 部门
Post *AdminPost `gorm:"foreignKey:PostID"` // 岗位
Role *AdminRole `gorm:"foreignKey:RoleID" json:"role"` // 角色
Dept *AdminDept `gorm:"foreignKey:DeptID" json:"dept"` // 部门
Post *AdminPost `gorm:"foreignKey:PostID" json:"post"` // 岗位
}
func (m *AdminUser) TableName() string {