base_product.go 1.7 KB

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