Discover Packages
github.com/hopeio/utils
types
param
package
Version:
v0.3.5
Opens a new window with list of versions in this module.
Published: Dec 16, 2024
License: MIT, Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Client struct {
ID string `json:"id,omitempty"`
Secret string `json:"secret,omitempty"`
Domain string `json:"domain,omitempty"`
UserID string `json:"userID,omitempty"`
}
type DateFilter struct {
DateBegin string `json:"dateBegin" explain:"起始时间"`
DateEnd string `json:"dateEnd" explain:"结束时间"`
RangeEnum int `json:"rangeEnum" explain:"1-今天,2-本周,3-本月,4-今年"`
}
type IPage interface {
PageNo() int
PageSize() int
}
type OauthReq struct {
ResponseType string `json:"responseType,omitempty"`
ClientID string `json:"clientID,omitempty"`
Scope string `json:"scope,omitempty"`
RedirectURI string `json:"redirectURI,omitempty"`
State string `json:"state,omitempty"`
UserID string `json:"userID,omitempty"`
AccessTokenExp int64 `json:"accessTokenExp,omitempty"`
ClientSecret string `json:"clientSecret,omitempty"`
Code string `json:"code,omitempty"`
RefreshToken string `json:"refreshToken,omitempty"`
GrantType string `json:"grantType,omitempty"`
AccessType string `json:"accessType,omitempty"`
LoginURI string `json:"loginURI,omitempty"`
}
type Page struct {
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
}
type Range[T Rangeable ] struct {
RangeField string `json:"rangeField,omitempty"`
RangeBegin T `json:"rangeBegin,omitempty"`
RangeEnd T `json:"rangeEnd,omitempty"`
Include bool `json:"include,omitempty"`
}
type Sort struct {
SortField string `json:"sortField,omitempty"`
SortType SortType `json:"sortType,omitempty"`
}
const (
SortTypeAsc SortType
SortTypeDesc
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.