base_product.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. request.PageReq
  16. }
  17. //AddProductReq 添加数据
  18. type AddProductReq struct {
  19. ProdCode string `p:"prodCode" json:"prodCode" v:"required#产品编码不允许为空"`
  20. ProdName string `p:"prodName" json:"prodName" v:"required#产品名称不允许为空"`
  21. ProdClass string `p:"prodClass" json:"prodClass" v:"required#产品分类不允许为空"`
  22. GuidPrice string `p:"guidPrice" json:"guidPrice" v:"required#建议成交价不允许为空"`
  23. DistPrice string `p:"distPrice" json:"distPrice" v:"required#经销商价不允许为空"`
  24. AgentPrice string `p:"agentPrice" json:"agentPrice" v:"required#签约代理价不允许为空"`
  25. MarketPrice string `p:"marketPrice" json:"marketPrice" v:"required#市场报价不允许为空"`
  26. Remark string
  27. }
  28. //UpdateProductReq 修改数据
  29. type UpdateProductReq struct {
  30. *AddProductReq
  31. Id int `p:"id" json:"id" v:"required# id不能为空"`
  32. }
  33. //DeIds 批量删除
  34. type DeIds struct {
  35. Ids []int64 `json:"ids,omitempty,string"`
  36. }