-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.go
85 lines (70 loc) · 1.74 KB
/
requests.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package MateBotSDKGo
type simpleID struct {
ID uint64 `json:"id"`
}
type newCallback struct {
Url string `json:"url"`
ApplicationID uint64 `json:"application_id"`
SharedSecret string `json:"shared_secret"`
}
type newUser struct {
Name string `json:"name"`
}
type newAlias struct {
UserID uint64 `json:"user_id"`
ApplicationID uint64 `json:"application_id"`
Username string `json:"username"`
Confirmed bool `json:"confirmed"`
}
type newTransaction struct {
Sender any `json:"sender"`
Receiver any `json:"receiver"`
Amount uint64 `json:"amount"`
Reason string `json:"reason"`
}
type newConsumption struct {
User any `json:"user"`
Amount uint64 `json:"amount"`
Consumable string `json:"consumable"`
}
type newCommunism struct {
Amount uint64 `json:"amount"`
Description string `json:"description"`
Creator any `json:"creator"`
}
type newPoll struct {
User any `json:"user"`
Issuer any `json:"issuer"`
Variant string `json:"variant"`
}
type newRefund struct {
Amount uint64 `json:"amount"`
Description string `json:"description"`
Creator any `json:"creator"`
}
type newVote struct {
User any `json:"user"`
BallotID uint64 `json:"ballot_id"`
Vote bool `json:"vote"`
}
type issuerID struct {
ID uint64 `json:"id"`
Issuer any `json:"issuer"`
}
type userPrivilegeDrop struct {
User any `json:"user"`
Issuer any `json:"issuer"`
}
type usernameUpdate struct {
Name string `json:"name"`
Issuer any `json:"issuer"`
}
type voucherUpdate struct {
Debtor any `json:"debtor"`
Voucher any `json:"voucher"`
Issuer any `json:"issuer"`
}
type communismParticipationUpdate struct {
ID uint64 `json:"id"`
User any `json:"user"`
}