-
Notifications
You must be signed in to change notification settings - Fork 44
/
query_app_links.go
37 lines (32 loc) · 1.08 KB
/
query_app_links.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package types
// DONTCOVER
import (
"github.com/cosmos/cosmos-sdk/types/query"
)
// NewQueryApplicationLinksRequest returns a new QueryApplicationLinksRequest instance
func NewQueryApplicationLinksRequest(
user, application, username string, pageReq *query.PageRequest,
) *QueryApplicationLinksRequest {
return &QueryApplicationLinksRequest{
User: user,
Application: application,
Username: username,
Pagination: pageReq,
}
}
// NewQueryApplicationLinkByClientIDRequest returns a new QueryApplicationLinkByClientIDRequest instance
func NewQueryApplicationLinkByClientIDRequest(clientID string) *QueryApplicationLinkByClientIDRequest {
return &QueryApplicationLinkByClientIDRequest{
ClientId: clientID,
}
}
// NewQueryApplicationLinkOwnersRequest returns a new QueryApplicationLinkOwnersRequest instance
func NewQueryApplicationLinkOwnersRequest(
application, username string, pageReq *query.PageRequest,
) *QueryApplicationLinkOwnersRequest {
return &QueryApplicationLinkOwnersRequest{
Application: application,
Username: username,
Pagination: pageReq,
}
}