mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
Commit from m3o/m3o action
This commit is contained in:
18
app/app.go
18
app/app.go
@@ -24,6 +24,14 @@ func (t *AppService) Reserve(request *ReserveRequest) (*ReserveResponse, error)
|
||||
|
||||
}
|
||||
|
||||
// Vote to have the App api launched faster!
|
||||
func (t *AppService) Vote(request *VoteRequest) (*VoteResponse, error) {
|
||||
|
||||
rsp := &VoteResponse{}
|
||||
return rsp, t.client.Call("app", "Vote", request, rsp)
|
||||
|
||||
}
|
||||
|
||||
type Reservation struct {
|
||||
// time of reservation
|
||||
Created string `json:"created"`
|
||||
@@ -45,3 +53,13 @@ type ReserveRequest struct {
|
||||
type ReserveResponse struct {
|
||||
Reservation *Reservation `json:"reservation"`
|
||||
}
|
||||
|
||||
type VoteRequest struct {
|
||||
// optional message
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type VoteResponse struct {
|
||||
// response message
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user