base_sales_region.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package base
  5. import (
  6. "dashoo.cn/opms_libary/request"
  7. "dashoo.cn/micro/app/model/base/internal"
  8. )
  9. // BaseSalesRegion is the golang structure for table base_sales_region.
  10. type BaseSalesRegion internal.BaseSalesRegion
  11. // Fill with you ideas below.
  12. type RegionSeq struct {
  13. RegionId int `json:"regionId" `
  14. request.PageReq
  15. }
  16. // 创建值
  17. type AddRegionReq struct {
  18. RegionDesc string `p:"regionDesc" json:"regionDesc" v:"required#创建描述不能为空"`
  19. UserName string `p:"userName" json:"userName" v:"required#区域负责人不能为空"`
  20. Remark string
  21. }
  22. type Region struct {
  23. Id int `p:"id" json:"id" `
  24. RegionCode string `p:"regionCode" json:"regionCode" `
  25. RegionDesc string `p:"regionDesc" json:"regionDesc" `
  26. Children []*District `json:"children,omitempty" `
  27. }
  28. type District struct {
  29. RegionId int `json:"regionId" `
  30. RegionCode string `json:"regionCode" `
  31. RegionDesc string `json:"regionDesc" `
  32. }