广汽安道拓Acura项目MES后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : RoleMenu
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : RoleMenu的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-20 11:28:44
  17. *
  18. ******************************************************************************/
  19. type RoleMenu struct {
  20. RoleId int `xorm:"pk int 'RoleId'" json:"RoleMenu-RoleId"`
  21. MenuId int `xorm:"pk int 'MenuId'" json:"RoleMenu-MenuId"`
  22. RoleName string `xorm:"varchar(40) 'RoleName'" json:"RoleMenu-RoleName"`
  23. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"RoleMenu-LastModify"`
  24. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"RoleMenu-LastUser"`
  25. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"RoleMenu-CreateTime"`
  26. }
  27. /******************************************************************************
  28. *
  29. * @Function Name : GetKey
  30. *-----------------------------------------------------------------------------
  31. *
  32. * @Description : 获取实体的主键
  33. *
  34. * @Return Value : 实体的主键
  35. *
  36. * @Author : 代码生成器创建
  37. *
  38. * @Date : 2021-08-20 11:28:44
  39. *
  40. ******************************************************************************/
  41. func (self *RoleMenu) GetKey() core.PK {
  42. return core.PK{self.RoleId, self.MenuId}
  43. }