// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package base import ( "dashoo.cn/opms_libary/request" "github.com/gogf/gf/os/gtime" "dashoo.cn/micro/app/model/base/internal" ) // BaseDistributor is the golang structure for table base_distributor. type BaseDistributor internal.BaseDistributor // Fill with you ideas below. type BaseDistributorSearchReq struct { DistCode string `json:"distCode"` // 经销商code DistName string `json:"distName"` // 经销商名称 BelongSale string `json:"belongSale"` // 所属经销商 ProvinceId int `json:"provinceId"` // 省份ID request.PageReq } //创建经销商字段 type AddDistributor struct { DistName string `orm:"dist_name" json:"distName" v:"required#经销商名称不能为空"` // 经销商名称 AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名 DistDesc string `orm:"dist_desc" json:"distDesc"` // 经销商说明 DistBoss string `orm:"dist_boss" json:"distBoss" v:"required#负责人不能为空" ` // 负责人 DistBossPhone string `orm:"dist_boss_phone" json:"distBossPhone" v:"required|phone#手机号不能为空|手机号格式错误"` // 负责人电话 ProvinceId int `orm:"province_id" json:"provinceId" v:"required#所属省份Id不能为空"` // 所属省份ID ProvinceDesc string `orm:"province_desc" json:"provinceDesc" v:"required#所属省份Id不能为空"` // 所属省份 BusinessScope string `orm:"business_scope" json:"businessScope" v:"required#业务范围不能为空"` // 业务范围 BelongSaleId int `orm:"belong_sale_id" json:"belongSaleId" v:"required#归属销售ID不能为空"` // 归属销售ID BelongSale string `orm:"belong_sale" json:"belongSale" v:"required#归属销售不能为空"` // 归属销售 InvoiceHeader string `json:"invoiceHeader"` // 开票抬头 } //列表返回字段 type DistributorRonp struct { Id int `orm:"id,primary" json:"id"` // 主健 DistCode string `orm:"dist_code" json:"distCode"` // 经销商编码 DistName string `orm:"dist_name" json:"distName"` // 经销商名字 AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名 DistBoss string `orm:"dist_boss" json:"distBoss"` // 负责人 DistBossPhone int `orm:"dist_boss_phone" json:"distBossPhone"` // 负责人电话 BelongSale string `orm:"belong_sale" json:"belongSale"` // 销售 ProvinceDesc string `orm:"province_desc" json:"provinceDesc"` // 省份描述 ProvinceId string `orm:"province_id" json:"provinceId"` // 省份Id BusinessScope string `orm:"business_scope" json:"businessScope"` // 业务范围 CreatedName string `orm:"created_name" json:"createdName"` // 创建人名字 CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间 DistDesc string `orm:"dist_desc" json:"distDesc"` // 说明 District *BaseDistrict `orm:"with:id=province_id"` //*Contanct InvoiceHeader string `orm:"invoice_header" json:"invoiceHeader"` // 开票抬头 } //编辑参数 type UpdateDistributorReq struct { *AddDistributor Id int `p:"id" json:"id" v:"required# id不能为空"` } //删除 type DeleteDistributorReq struct { Ids []int64 `p:"id" json:"ids" v:"required# id不能为空"` } type Contanct struct { Name string `json:"name"` // 销售名 }