// ========================================================================== // This is auto-generated by gf cli tool. Fill this file as you wish. // ========================================================================== package model import ( "dashoo.cn/micro/app/model/internal" "dashoo.cn/opms_libary/request" ) // 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" v:"required#产品编号不能为空"` ProdName string `p:"prodName" v:"required#产品名称不能为空"` ProdClass string `p:"prodClass" v:"required#产品分类不能为空"` GuidPrice float64 `p:"guidPrice" v:"required#建议成交价"` Remark string } //修改数据 type UpdateBaseProductReq struct{ AddBaseProductReq Id int `p:"id" v:"required# id不能为空"` }