| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // ==========================================================================
- // 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 BaseProductSearchReq struct {
- KeyWords string `json:"prodCode"`
- request.PageReq
- }
- //添加数据
- type AddBaseProductReq 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
- }
- //修改数据
- type UpdateBaseProductReq struct {
- *AddBaseProductReq
- Id int `p:"id" json:"id" v:"required# id不能为空"`
- }
- //批量删除
- type DeIds struct {
- Ids []int64 `json:"ids,omitempty,string"`
- }
|