// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package model import ( "dashoo.cn/micro/app/model/internal" ) // BaseRegionAuth is the golang structure for table base_region_auth. type BaseRegionAuth internal.BaseRegionAuth // Fill with you ideas below. // ReturnBaseRegionAuth 返回前端的数据 type ReturnBaseRegionAuth struct { UserId int `orm:"user_id" json:"userId"` // 用户ID UserName string `orm:"user_name" json:"userName"` // 姓名 UserPost string `orm:"user_post" json:"userPost"` // 岗位 UserPhone string `orm:"user_phone" json:"userPhone"` // 电话 SaleRegionId string `orm:"sale_region_id" json:"saleRegionId"` // 销售区域ID SaleRegionName string `orm:"sale_region_name" json:"saleRegionName"` // 销售区域名称 ProvinceId string `orm:"province_id" json:"provinceId"` // 省ID ProvinceName string `orm:"province_name" json:"provinceName"` // 省名称 CityId string `orm:"city_id" json:"cityId"` // 市ID CityName string `orm:"city_name" json:"cityName"` // 市名称 RegionInfo string `json:"regionInfo"` // 显示区域信息 } // BaseRegionAuthSearchReq 销售区域授权查询 type BaseRegionAuthSearchReq struct { UserId int `orm:"user_id" json:"userId"` // 用户ID UserName string `orm:"user_name" json:"userName"` // 用户姓名 UserPost string `orm:"user_post" json:"userPost"` // 岗位 UserPhone string `orm:"user_phone" json:"userPhone"` // 电话 SaleRegionId int `orm:"sale_region_id" json:"saleRegionId"` // 销售区域ID SaleRegionName string `orm:"sale_region_name" json:"saleRegionName"` // 销售区域名称 ProvinceId int `orm:"province_id" json:"provinceId"` // 省ID ProvinceName string `orm:"province_name" json:"provinceName"` // 省名称 CityId int `orm:"city_id" json:"cityId"` // 市ID CityName string `orm:"city_name" json:"cityName"` // 市名称 } // SaveBaseRegionAuthReq 销售区域线更新 type SaveBaseRegionAuthReq struct { SaleRegionId int `orm:"sale_region_id" json:"saleRegionId" v:"required|min:1#销售区域ID不能为空|销售区域ID不能为空"` // 销售区域ID SaleRegionName string `orm:"sale_region_name" json:"saleRegionName" v:"required#销售区域名称不能为空"` // 销售区域名称 UserId int `orm:"user_id" json:"userId" v:"required|min:1#用户ID不能为空|用户ID不能为空"` // 用户ID UserName string `orm:"user_name" json:"userName" v:"required#用户姓名不能为空"` // 用户姓名 UserPost string `orm:"user_post" json:"userPost"` // 岗位 UserPhone string `orm:"user_phone" json:"userPhone"` // 电话 Regions []*Region `json:"regions"` } // Region 销售区域 type Region struct { ProvinceId int `orm:"province_id" json:"provinceId" v:"required|min:1#省ID不能为空|省ID不能为空"` // 省ID ProvinceName string `orm:"province_name" json:"provinceName" v:"required#省名称不能为空"` // 省名称 CityId int `orm:"city_id" json:"cityId" v:"required|min:1#市ID不能为空|市ID不能为空"` // 市ID CityName string `orm:"city_name" json:"cityName" v:"required#市名称不能为空"` // 市名称 Remark string `orm:"remark" json:"remark"` // 备注 }