package validate_service

import "encoding/json"

type Coin struct {
	Sid       string          `json:"sid" validate:"required"`
	Name      string          `json:"name" validate:"required"`
	Nickname  json.RawMessage `json:"nickname" validate:"required"`
	Icon      string          `json:"icon" validate:"required"`
	Introduce json.RawMessage `json:"introduce" validate:"required"`

	Official string `json:"official" validate:"required"`
	Paper    string `json:"paper" validate:"required"`
	Platform string `json:"platform" validate:"required"`
	Chain    string `json:"chain" validate:"required"`
	Release  string `json:"release" validate:"required"`

	AreaSearch     string  `json:"area_search" validate:"required"`
	PublishCount   float64 `json:"publish_count" validate:"required"`
	CirculateCount float64 `json:"circulate_count" validate:"required"`
	Decimals       int     `json:"decimals" validate:"required"`
	Address        string  `json:"address" validate:"required"`

	Treaty     int `json:"treaty" validate:"required"`
	PlatformId int `json:"platform_id" validate:"required"`
}

type EditCoin struct {
	Coin
	Id int `json:"id" validate:"required"`
}
