base_product.go 1.4 KB

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