修正返回数据大小写问题

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
+2 -2
View File
@@ -4,8 +4,8 @@ package model
type AdminRoleMenu struct {
RoleID int64 `gorm:"column:role_id;type:bigint(19);primary_key;comment:权限id" json:"role_id"`
MenuID int64 `gorm:"column:menu_id;type:bigint(19);primary_key;comment:菜单id" json:"menu_id"`
Menu AdminMenu `gorm:"foreignKey:MenuID"`
Role AdminRole `gorm:"foreignKey:RoleID"`
Menu AdminMenu `gorm:"foreignKey:MenuID" json:"menu"`
Role AdminRole `gorm:"foreignKey:RoleID" json:"role"`
}
func (m *AdminRoleMenu) TableName() string {