request

package
v0.4.4-gz7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryPage

func QueryPage(info PageSearch, db *gorm.DB) (*gorm.DB, int64, error)

func QueryPageWithMember

func QueryPageWithMember(info MemberPageSearch, db *gorm.DB) (*gorm.DB, int64, error)

Types

type Empty

type Empty struct{}

type GetAuthorityId

type GetAuthorityId struct {
	AuthorityId int `json:"authorityId" form:"authorityId"` // 角色ID
}

GetAuthorityId Get role by id structure

type GetById

type GetById struct {
	Id int `json:"id" form:"id"` // 主键ID
}

GetById Find by id structure

func (*GetById) Uint

func (r *GetById) Uint() int

type IdsReq

type IdsReq struct {
	Ids []int `json:"ids" form:"ids" binding:"required"`
}

type MemberPageSearch

type MemberPageSearch struct {
	PageSearch
	MemberId uuid.UUID `json:"memberId" form:"memberId" `
}

func DefaultMemberPageSearch

func DefaultMemberPageSearch(uid uuid.UUID) MemberPageSearch

type PageInfo

type PageInfo struct {
	Page     int    `json:"page" form:"page"`         // 页码
	PageSize int    `json:"pageSize" form:"pageSize"` // 每页大小
	Keyword  string `json:"keyword" form:"keyword"`   //关键字
}

PageInfo Paging common input parameter structure

func DefaultPageInfo

func DefaultPageInfo() PageInfo

type PageSearch

type PageSearch struct {
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	PageInfo
}

func DefaultPageSearch

func DefaultPageSearch() PageSearch

Jump to

Keyboard shortcuts

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