vo

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT. This file was generated by go-doudou at 2021-06-13 15:12:27.656072 +0800 CST m=+0.004897271

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	Col  string
	Sort string
}

排序条件

func (Order) MarshalJSON

func (object Order) MarshalJSON() ([]byte, error)

type Page

type Page struct {
	// 排序规则
	Orders []Order
	// 页码
	PageNo int
	// 每页行数
	Size int
	User UserVo
}

func (Page) MarshalJSON

func (object Page) MarshalJSON() ([]byte, error)

type PageFilter

type PageFilter struct {
	// 真实姓名,前缀匹配
	Name string
	// 所属部门ID
	Dept int
}

筛选条件

func (PageFilter) MarshalJSON

func (object PageFilter) MarshalJSON() ([]byte, error)

type PageQuery

type PageQuery struct {
	Filter PageFilter
	Page   Page
}

分页筛选条件

func (PageQuery) MarshalJSON

func (object PageQuery) MarshalJSON() ([]byte, error)

type PageRet

type PageRet struct {
	Items    interface{}
	PageNo   int
	PageSize int
	Total    int
	HasNext  bool
}

func (PageRet) MarshalJSON

func (object PageRet) MarshalJSON() ([]byte, error)

type UserVo

type UserVo struct {
	Id    int
	Name  string
	Phone string
	Dept  string
}

func (UserVo) MarshalJSON

func (object UserVo) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL