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.

50 lines
1.9 KiB

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