base_product.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package base
  5. import (
  6. "dashoo.cn/opms_libary/request"
  7. "dashoo.cn/micro/app/model/base/internal"
  8. )
  9. // BaseProduct is the golang structure for table base_product.
  10. type BaseProduct internal.BaseProduct
  11. // Fill with you ideas below.
  12. type ProductSearchReq struct {
  13. ProdCode string `json:"prodCode"`
  14. ProdName string `json:"prodName"`
  15. ProdClass string `json:"ProdClass"`
  16. request.PageReq
  17. }
  18. //AddProductReq 添加数据
  19. type AddProductReq struct {
  20. ProdCode string `p:"prodCode" json:"prodCode" v:"required#产品编码不允许为空"`
  21. ProdName string `p:"prodName" json:"prodName" v:"required#产品名称不允许为空"`
  22. ProdClass string `p:"prodClass" json:"prodClass" v:"required#产品分类不允许为空"`
  23. GuidPrice string `p:"guidPrice" json:"guidPrice" v:"required#建议成交价不允许为空"`
  24. DistPrice string `p:"distPrice" json:"distPrice" v:"required#经销商价不允许为空"`
  25. AgentPrice string `p:"agentPrice" json:"agentPrice" v:"required#签约代理价不允许为空"`
  26. MarketPrice string `p:"marketPrice" json:"marketPrice" v:"required#市场报价不允许为空"`
  27. Remark string
  28. }
  29. //UpdateProductReq 修改数据
  30. type UpdateProductReq struct {
  31. *AddProductReq
  32. Id int `p:"id" json:"id" v:"required# id不能为空"`
  33. }
  34. //DeIds 批量删除
  35. type DeIds struct {
  36. Ids []int64 `json:"ids,omitempty,string"`
  37. }