| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package model
- import (
- "dashoo.cn/micro/app/model/internal"
- "dashoo.cn/opms_libary/request"
- )
- // BaseProductAuth is the golang structure for table base_product_auth.
- type BaseProductAuth internal.BaseProductAuth
- // Fill with you ideas below.
- // ReturnBaseProductAuth 返回前端的数据
- type ReturnBaseProductAuth struct {
- UserId int `orm:"user_id" json:"userId"` // 用户ID
- UserName string `orm:"user_name" json:"userName"` // 用户姓名
- UserPost string `orm:"user_post" json:"userPost"` // 岗位
- UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
- ProductCode string `orm:"product_code" json:"productCode"` // 产品线编码
- ProductName string `orm:"product_name" json:"productName"` // 产品线名称
- }
- // BaseProductAuthSearchReq 产品线授权查询
- type BaseProductAuthSearchReq struct {
- UserId int `orm:"user_id" json:"userId"` // 用户ID
- UserName string `orm:"user_name" json:"userName"` // 用户姓名
- UserPost string `orm:"user_post" json:"userPost"` // 岗位
- UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
- ProductCode string `orm:"product_code" json:"productCode"` // 产品线编码
- ProductName string `orm:"product_name" json:"productName"` // 产品线名称
- request.PageReq
- }
- // SaveBaseProductAuthReq 产品线更新
- type SaveBaseProductAuthReq struct {
- UserId int `orm:"user_id" json:"userId" v:"required|min:1#用户ID不能为空|用户ID不能为空"` // 用户ID
- UserName string `orm:"user_name" json:"userName" v:"required#用户姓名不能为空"` // 用户姓名
- UserPost string `orm:"user_post" json:"userPost"` // 岗位
- UserPhone string `orm:"user_phone" json:"userPhone"` // 电话
- Lines []*ProductLine `json:"lines" v:"required#产品线不能为空"`
- }
- // ProductLine 产品线
- type ProductLine struct {
- ProductCode string `orm:"product_code" json:"productCode" v:"required#产品线编码不能为空"` // 产品线编码
- ProductName string `orm:"product_name" json:"productName" v:"required#产品线名称不能为空"` // 产品线名称
- Remark string `orm:"remark" json:"remark"` // 备注
- }
|