api.go 446 Bytes
package api_model

type CheckUserRequest struct {
	InitData  string `json:"initData"`
	Platform  string `json:"platform"`
	VisitorID string `json:"visitorId"`
}

type CheckUserResponse struct {
	IsNewUser bool   `json:"isNewUser"`
	Keystore  string `json:"keystore"`
	Token     string `json:"token"`
}

type CreateUserRequest struct {
	Keystore  string `json:"keystore"`
	Signature string `json:"signature"`
}

type CreateUserResponse struct {
}