base_product.go 1.3 KB

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