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

     1  package vo
     2  
     3  //go:generate go-doudou name --file $GOFILE -o
     4  
     5  // 筛选条件
     6  type PageFilter struct {
     7  	// 真实姓名,前缀匹配
     8  	Name string
     9  	// 所属部门ID
    10  	Dept int
    11  }
    12  
    13  //排序条件
    14  type Order struct {
    15  	Col  string
    16  	Sort string
    17  }
    18  
    19  type Page struct {
    20  	// 排序规则
    21  	Orders []Order
    22  	// 页码
    23  	PageNo int
    24  	// 每页行数
    25  	Size int
    26  	User UserVo
    27  }
    28  
    29  // 分页筛选条件
    30  type PageQuery struct {
    31  	Filter PageFilter
    32  	Page   Page
    33  }
    34  
    35  type PageRet struct {
    36  	Items    interface{}
    37  	PageNo   int
    38  	PageSize int
    39  	Total    int
    40  	HasNext  bool
    41  }
    42  
    43  type UserVo struct {
    44  	Id    int
    45  	Name  string
    46  	Phone string
    47  	Dept  string
    48  }