苏州瑞玛APS项目web后台
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.

60 lines
2.8 KiB

3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "leit.com/LAPP_CHEERSSON_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : User
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : User的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-20 11:28:44
  17. *
  18. ******************************************************************************/
  19. type User struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"User-PlantNr"`
  21. UserId string `xorm:"pk varchar(40) 'UserId'" json:"User-UserId"`
  22. Name string `xorm:"varchar(40) 'Name'" json:"User-Name"`
  23. NickName string `xorm:"varchar(40) 'NickName'" json:"User-NickName"`
  24. DepId int `xorm:"int 'DepId'" json:"User-DepId"`
  25. Phone string `xorm:"varchar(20) 'Phone'" json:"User-Phone"`
  26. Avatar string `xorm:"varchar(128) 'Avatar'" json:"User-Avatar"`
  27. Email string `xorm:"varchar(40) 'Email'" json:"User-Email"`
  28. Status string `xorm:"varchar(1) 'Status'" json:"User-Status"`
  29. Gender string `xorm:"varchar(1) 'Gender'" json:"User-Gender"`
  30. Position string `xorm:"varchar(40) 'Position'" json:"User-Position"`
  31. Role string `xorm:"varchar(40) 'Role'" json:"User-Role"`
  32. Remark string `xorm:"varchar(100) 'Remark'" json:"User-Remark"`
  33. Password string `xorm:"varchar(255) 'Password'" json:"User-Password"`
  34. RoleId int `xorm:"int 'RoleId'" json:"User-RoleId"`
  35. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"User-LastModify"`
  36. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"User-LastUser"`
  37. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"User-CreateTime"`
  38. CustCommissioner string `xorm:"nvarchar(255) 'CustCommissioner'" json:"User-CustCommissioner"`
  39. }
  40. /******************************************************************************
  41. *
  42. * @Function Name : GetKey
  43. *-----------------------------------------------------------------------------
  44. *
  45. * @Description : 获取实体的主键
  46. *
  47. * @Return Value : 实体的主键
  48. *
  49. * @Author : 代码生成器创建
  50. *
  51. * @Date : 2021-08-20 11:28:44
  52. *
  53. ******************************************************************************/
  54. func (self *User) GetKey() core.PK {
  55. return core.PK{self.PlantNr, self.UserId}
  56. }