base_product.go 1023 B

123456789101112131415161718192021222324252627282930313233
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/internal"
  7. "dashoo.cn/opms_libary/request"
  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" v:"required#产品编号不能为空"`
  19. ProdName string `p:"prodName" v:"required#产品名称不能为空"`
  20. ProdClass string `p:"prodClass" v:"required#产品分类不能为空"`
  21. GuidPrice float64 `p:"guidPrice" v:"required#建议成交价"`
  22. Remark string
  23. }
  24. //修改数据
  25. type UpdateBaseProductReq struct{
  26. AddBaseProductReq
  27. Id int `p:"id" v:"required# id不能为空"`
  28. }