base_product_auth.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. // BaseProductAuth is the golang structure for table base_product_auth.
  10. type BaseProductAuth internal.BaseProductAuth
  11. // Fill with you ideas below.
  12. // ReturnBaseProductAuth 返回前端的数据
  13. type ReturnBaseProductAuth struct {
  14. UserId int `orm:"user_id" json:"userId"` // 用户ID
  15. UserName string `orm:"user_name" json:"userName"` // 用户姓名
  16. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  17. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  18. ProductCode string `orm:"product_code" json:"productCode"` // 产品线编码
  19. ProductName string `orm:"product_name" json:"productName"` // 产品线名称
  20. }
  21. // BaseProductAuthSearchReq 产品线授权查询
  22. type BaseProductAuthSearchReq struct {
  23. UserId int `orm:"user_id" json:"userId"` // 用户ID
  24. UserName string `orm:"user_name" json:"userName"` // 用户姓名
  25. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  26. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  27. ProductCode string `orm:"product_code" json:"productCode"` // 产品线编码
  28. ProductName string `orm:"product_name" json:"productName"` // 产品线名称
  29. request.PageReq
  30. }
  31. // SaveBaseProductAuthReq 产品线更新
  32. type SaveBaseProductAuthReq struct {
  33. UserId int `orm:"user_id" json:"userId" v:"required|min:1#用户ID不能为空|用户ID不能为空"` // 用户ID
  34. UserName string `orm:"user_name" json:"userName" v:"required#用户姓名不能为空"` // 用户姓名
  35. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  36. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  37. Lines []*ProductLine `json:"lines" v:"required#产品线不能为空"`
  38. }
  39. // ProductLine 产品线
  40. type ProductLine struct {
  41. ProductCode string `orm:"product_code" json:"productCode" v:"required#产品线编码不能为空"` // 产品线编码
  42. ProductName string `orm:"product_name" json:"productName" v:"required#产品线名称不能为空"` // 产品线名称
  43. Remark string `orm:"remark" json:"remark"` // 备注
  44. }