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.

72 lines
4.1 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package wm
  3. import (
  4. "LAPP_LF_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Vendor
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Vendor的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-07-21 11:04:46
  17. *
  18. ******************************************************************************/
  19. type Vendor struct {
  20. VendorId string `xorm:"pk nvarchar(40) 'VendorId'" json:"WM_Vendor-VendorId"`
  21. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"WM_Vendor-Descr"`
  22. Address string `xorm:"nvarchar(100) 'Address' not null" json:"WM_Vendor-Address"`
  23. Name string `xorm:"nvarchar(100) 'Name' not null" json:"WM_Vendor-Name"`
  24. Name1 string `xorm:"nvarchar(100) 'Name1' not null" json:"WM_Vendor-Name1"`
  25. Name2 string `xorm:"nvarchar(100) 'Name2' not null" json:"WM_Vendor-Name2"`
  26. ValidStartDate grmi.Date `xorm:"date 'ValidStartDate' not null" json:"WM_Vendor-ValidStartDate"`
  27. Country string `xorm:"nvarchar(100) 'Country' not null" json:"WM_Vendor-Country"`
  28. City string `xorm:"nvarchar(100) 'City' not null" json:"WM_Vendor-City"`
  29. District string `xorm:"nvarchar(100) 'District' not null" json:"WM_Vendor-District"`
  30. Street string `xorm:"nvarchar(100) 'Street' not null" json:"WM_Vendor-Street"`
  31. Location string `xorm:"nvarchar(100) 'Location' not null" json:"WM_Vendor-Location"`
  32. PostCode string `xorm:"nvarchar(20) 'PostCode' not null" json:"WM_Vendor-PostCode"`
  33. Phone string `xorm:"nvarchar(20) 'Phone' not null" json:"WM_Vendor-Phone"`
  34. Mobile string `xorm:"nvarchar(20) 'Mobile' not null" json:"WM_Vendor-Mobile"`
  35. Fax string `xorm:"nvarchar(20) 'Fax' not null" json:"WM_Vendor-Fax"`
  36. Email1 string `xorm:"nvarchar(40) 'Email1' not null" json:"WM_Vendor-Email1"`
  37. Email2 string `xorm:"nvarchar(40) 'Email2' not null" json:"WM_Vendor-Email2"`
  38. ContactPerson string `xorm:"nvarchar(40) 'ContactPerson' not null" json:"WM_Vendor-ContactPerson"`
  39. PersonTitle string `xorm:"nvarchar(40) 'PersonTitle' not null" json:"WM_Vendor-PersonTitle"`
  40. ContactAddress string `xorm:"nvarchar(100) 'ContactAddress' not null" json:"WM_Vendor-ContactAddress"`
  41. Account int `xorm:"int 'Account' not null" json:"WM_Vendor-Account"`
  42. TaxRate string `xorm:"nvarchar(20) 'TaxRate' not null" json:"WM_Vendor-TaxRate"`
  43. Status int `xorm:"int 'Status' not null" json:"WM_Vendor-Status"`
  44. Province string `xorm:"nvarchar(100) 'Province'" json:"WM_Vendor-Province"`
  45. ProvinceCode string `xorm:"nvarchar(20) 'ProvinceCode'" json:"WM_Vendor-ProvinceCode"`
  46. CityCode string `xorm:"nvarchar(20) 'CityCode'" json:"WM_Vendor-CityCode"`
  47. DistrictCode string `xorm:"nvarchar(20) 'DistrictCode'" json:"WM_Vendor-DistrictCode"`
  48. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WM_Vendor-LastModify"`
  49. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WM_Vendor-LastUser"`
  50. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WM_Vendor-CreateTime"`
  51. }
  52. /******************************************************************************
  53. *
  54. * @Function Name : GetKey
  55. *-----------------------------------------------------------------------------
  56. *
  57. * @Description : 获取实体的主键
  58. *
  59. * @Return Value : 实体的主键
  60. *
  61. * @Author : 代码生成器创建
  62. *
  63. * @Date : 2021-07-21 11:04:46
  64. *
  65. ******************************************************************************/
  66. func (self *Vendor) GetKey() core.PK {
  67. return core.PK{self.VendorId}
  68. }