base_product.go 2.0 KB

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