base_product_auth.go 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. IsBig string `orm:"is_big" json:"isBig"` // 大项目授权10是20否
  19. ProductCode string `orm:"product_code" json:"productCode"` // 产品线编码
  20. ProductName string `orm:"product_name" json:"productName"` // 产品线名称
  21. }
  22. // BaseProductAuthSearchReq 产品线授权查询
  23. type BaseProductAuthSearchReq struct {
  24. UserId int `orm:"user_id" json:"userId"` // 用户ID
  25. UserName string `orm:"user_name" json:"userName"` // 用户姓名
  26. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  27. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  28. ProductCode string `orm:"product_code" json:"productCode"` // 产品线编码
  29. ProductName string `orm:"product_name" json:"productName"` // 产品线名称
  30. IsBig string `orm:"is_big" json:"isBig"` // 大项目授权10是20否
  31. request.PageReq
  32. }
  33. // SaveBaseProductAuthReq 产品线更新
  34. type SaveBaseProductAuthReq struct {
  35. UserId int `orm:"user_id" json:"userId" v:"required|min:1#用户ID不能为空|用户ID不能为空"` // 用户ID
  36. UserName string `orm:"user_name" json:"userName" v:"required#用户姓名不能为空"` // 用户姓名
  37. UserPost string `orm:"user_post" json:"userPost"` // 岗位
  38. UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
  39. IsBig string `orm:"is_big" json:"isBig" v:"required#大项目授权不能为空"` // 大项目授权10是20否
  40. Lines []*ProductLine `json:"lines"`
  41. }
  42. // ProductLine 产品线
  43. type ProductLine struct {
  44. ProductCode string `orm:"product_code" json:"productCode" v:"required#产品线编码不能为空"` // 产品线编码
  45. ProductName string `orm:"product_name" json:"productName" v:"required#产品线名称不能为空"` // 产品线名称
  46. Remark string `orm:"remark" json:"remark"` // 备注
  47. }