request

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminMark

type AdminMark struct {
	AdminMark string `json:"adminMark" form:"adminMark" binding:"required"`
}

type ChangeStatus

type ChangeStatus struct {
	Id     uint `json:"id" form:"id" binding:"required,gt=0"`
	Status int  `json:"status" binding:"required"`
}

type Date

type Date struct {
	Date string `json:"date" form:"date"`
}

type Empty

type Empty struct{}

type GetAuthorityId

type GetAuthorityId struct {
	AuthorityId string `json:"authorityId" form:"authorityId" binding:"required"`
}

Get role by id structure

type GetById

type GetById struct {
	Id        uint `json:"id" uri:"id" form:"id" binding:"required"`
	TenancyId uint `json:"tenancy_id" uri:"tenancy_id" form:"tenancy_id"`
	UserId    uint `json:"user_id" uri:"user_id" form:"user_id"`
}

Find by id structure

type GetByTenancyId

type GetByTenancyId struct {
	TenancyId uint `json:"tenancy_id" uri:"tenancy_id" form:"tenancy_id" binding:"required"`
}

Find by id structure

type GetByUserId

type GetByUserId struct {
	UserId uint `json:"user_id" uri:"user_id" form:"user_id" binding:"required"`
}

Find by user_id structure

type Ids

type Ids struct {
	Ids []uint `json:"ids" form:"ids" binding:"required,dive,required"`
}

type PageInfo

type PageInfo struct {
	Page     int    `json:"page" form:"page" binding:"required"`
	PageSize int    `json:"pageSize" form:"pageSize" binding:"required"`
	OrderBy  string `json:"orderBy" form:"orderBy"`
	SortBy   string `json:"sortBy" form:"sortBy"`
}

Paging common input parameter structure

type Result

type Result struct {
	Time  string
	Count float64
}

type Status

type Status struct {
	Status string `json:"status" binding:"required"`
}

Jump to

Keyboard shortcuts

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