github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/cmd/internal/name/testdata/vo.go (about)

     1  package testdata
     2  
     3  // 筛选条件
     4  type PageFilter struct {
     5  	// 真实姓名,前缀匹配
     6  	Name string
     7  	// 所属部门ID
     8  	Dept int
     9  }
    10  
    11  //排序条件
    12  type Order struct {
    13  	Col  string	`json:"-"`
    14  	sort string
    15  }
    16  
    17  type PageRet struct {
    18  	Items    interface{}
    19  	PageNo   int
    20  	PageSize int
    21  	Total    int
    22  	HasNext  bool
    23  }
    24  
    25  type Field struct {
    26  	Name   string
    27  	Type   string
    28  	Format string
    29  }
    30  
    31  type Base struct {
    32  	Index string
    33  	Type  string
    34  }
    35  
    36  type MappingPayload struct {
    37  	Base
    38  	Fields []Field
    39  	Index  string
    40  }