| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package base
- import (
- "dashoo.cn/opms_libary/request"
- "dashoo.cn/micro/app/model/base/internal"
- )
- // BaseProduct is the golang structure for table base_product.
- type BaseProduct internal.BaseProduct
- // Fill with you ideas below.
- type ProductSearchReq struct {
- ProdCode string `json:"prodCode"`
- ProdName string `json:"prodName"`
- ProdClass string `json:"ProdClass"`
- request.PageReq
- }
- //AddProductReq 添加数据
- type AddProductReq struct {
- ProdCode string `p:"prodCode" json:"prodCode" v:"required#产品编码不允许为空"`
- ProdName string `p:"prodName" json:"prodName" v:"required#产品名称不允许为空"`
- ProdClass string `p:"prodClass" json:"prodClass" v:"required#产品分类不允许为空"`
- GuidPrice string `p:"guidPrice" json:"guidPrice" v:"required#建议成交价不允许为空"`
- DistPrice string `p:"distPrice" json:"distPrice" v:"required#经销商价不允许为空"`
- AgentPrice string `p:"agentPrice" json:"agentPrice" v:"required#签约代理价不允许为空"`
- MarketPrice string `p:"marketPrice" json:"marketPrice" v:"required#市场报价不允许为空"`
- Remark string
- }
- //UpdateProductReq 修改数据
- type UpdateProductReq struct {
- *AddProductReq
- Id int `p:"id" json:"id" v:"required# id不能为空"`
- }
- //DeIds 批量删除
- type DeIds struct {
- Ids []int64 `json:"ids,omitempty,string"`
- }
|