base_region_auth.go 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/internal"
  7. )
  8. // BaseRegionAuth is the golang structure for table base_region_auth.
  9. type BaseRegionAuth internal.BaseRegionAuth
  10. // Fill with you ideas below.
  11. // ReturnBaseRegionAuth 返回前端的数据
  12. type ReturnBaseRegionAuth struct {
  13. UserId int `orm:"user_id" json:"userId"` // 用户ID
  14. UserName string `orm:"user_name" json:"userName"` // 姓名
  15. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  16. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  17. SaleRegionId string `orm:"sale_region_id" json:"saleRegionId"` // 销售区域ID
  18. SaleRegionName string `orm:"sale_region_name" json:"saleRegionName"` // 销售区域名称
  19. ProvinceId string `orm:"province_id" json:"provinceId"` // 省ID
  20. ProvinceName string `orm:"province_name" json:"provinceName"` // 省名称
  21. CityId string `orm:"city_id" json:"cityId"` // 市ID
  22. CityName string `orm:"city_name" json:"cityName"` // 市名称
  23. RegionInfo string `json:"regionInfo"` // 显示区域信息
  24. }
  25. // BaseRegionAuthSearchReq 销售区域授权查询
  26. type BaseRegionAuthSearchReq struct {
  27. UserId int `orm:"user_id" json:"userId"` // 用户ID
  28. UserName string `orm:"user_name" json:"userName"` // 用户姓名
  29. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  30. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  31. SaleRegionId int `orm:"sale_region_id" json:"saleRegionId"` // 销售区域ID
  32. SaleRegionName string `orm:"sale_region_name" json:"saleRegionName"` // 销售区域名称
  33. ProvinceId int `orm:"province_id" json:"provinceId"` // 省ID
  34. ProvinceName string `orm:"province_name" json:"provinceName"` // 省名称
  35. CityId int `orm:"city_id" json:"cityId"` // 市ID
  36. CityName string `orm:"city_name" json:"cityName"` // 市名称
  37. }
  38. // SaveBaseRegionAuthReq 销售区域线更新
  39. type SaveBaseRegionAuthReq struct {
  40. SaleRegionId int `orm:"sale_region_id" json:"saleRegionId" v:"required|min:1#销售区域ID不能为空|销售区域ID不能为空"` // 销售区域ID
  41. SaleRegionName string `orm:"sale_region_name" json:"saleRegionName" v:"required#销售区域名称不能为空"` // 销售区域名称
  42. UserId int `orm:"user_id" json:"userId" v:"required|min:1#用户ID不能为空|用户ID不能为空"` // 用户ID
  43. UserName string `orm:"user_name" json:"userName" v:"required#用户姓名不能为空"` // 用户姓名
  44. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  45. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  46. Regions []*Region `json:"regions"`
  47. }
  48. // Region 销售区域
  49. type Region struct {
  50. ProvinceId int `orm:"province_id" json:"provinceId" v:"required|min:1#省ID不能为空|省ID不能为空"` // 省ID
  51. ProvinceName string `orm:"province_name" json:"provinceName" v:"required#省名称不能为空"` // 省名称
  52. CityId int `orm:"city_id" json:"cityId" v:"required|min:1#市ID不能为空|市ID不能为空"` // 市ID
  53. CityName string `orm:"city_name" json:"cityName" v:"required#市名称不能为空"` // 市名称
  54. Remark string `orm:"remark" json:"remark"` // 备注
  55. }