Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-26 12:34:00 +00:00
parent 8e682f8359
commit 87630a4bfd
19 changed files with 838 additions and 748 deletions

35
nft/nft.go Executable file
View File

@@ -0,0 +1,35 @@
package nft
import (
"go.m3o.com/client"
)
func NewNftService(token string) *NftService {
return &NftService{
client: client.NewClient(&client.Options{
Token: token,
}),
}
}
type NftService struct {
client *client.Client
}
// Vote to have the NFT api launched faster!
func (t *NftService) Vote(request *VoteRequest) (*VoteResponse, error) {
rsp := &VoteResponse{}
return rsp, t.client.Call("nft", "Vote", request, rsp)
}
type VoteRequest struct {
// optional message
Message string `json:"message"`
}
type VoteResponse struct {
// response message
Message string `json:"message"`
}