models

package
v0.0.0-...-0c8147e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleContent

type ArticleContent struct {

	// article id
	ArticleID string `json:"article_id,omitempty"`

	// body
	Body string `json:"body,omitempty"`

	// created at
	CreatedAt float64 `json:"created_at,omitempty"`

	// eye catch url
	EyeCatchURL string `json:"eye_catch_url,omitempty"`

	// overview
	Overview string `json:"overview,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

ArticleContent article content swagger:model ArticleContent

func (*ArticleContent) MarshalBinary

func (m *ArticleContent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ArticleContent) UnmarshalBinary

func (m *ArticleContent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ArticleContent) Validate

func (m *ArticleContent) Validate(formats strfmt.Registry) error

Validate validates this article content

type ArticleImage

type ArticleImage struct {

	// article image
	ArticleImage string `json:"article_image,omitempty"`
}

ArticleImage article image swagger:model ArticleImage

func (*ArticleImage) MarshalBinary

func (m *ArticleImage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ArticleImage) UnmarshalBinary

func (m *ArticleImage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ArticleImage) Validate

func (m *ArticleImage) Validate(formats strfmt.Registry) error

Validate validates this article image

type ArticleInfo

type ArticleInfo struct {

	// article id
	ArticleID string `json:"article_id,omitempty"`

	// created at
	CreatedAt float64 `json:"created_at,omitempty"`

	// eye catch url
	EyeCatchURL string `json:"eye_catch_url,omitempty"`

	// overview
	Overview string `json:"overview,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

ArticleInfo article info swagger:model ArticleInfo

func (*ArticleInfo) MarshalBinary

func (m *ArticleInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ArticleInfo) UnmarshalBinary

func (m *ArticleInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ArticleInfo) Validate

func (m *ArticleInfo) Validate(formats strfmt.Registry) error

Validate validates this article info

type Comment

type Comment struct {

	// article id
	ArticleID string `json:"article_id,omitempty"`

	// comment id
	CommentID string `json:"comment_id,omitempty"`

	// created at
	CreatedAt float64 `json:"created_at,omitempty"`

	// sort key
	SortKey int64 `json:"sort_key,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

Comment comment swagger:model Comment

func (*Comment) MarshalBinary

func (m *Comment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Comment) UnmarshalBinary

func (m *Comment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Comment) Validate

func (m *Comment) Validate(formats strfmt.Registry) error

Validate validates this comment

type MeArticlesDraftsCreate

type MeArticlesDraftsCreate struct {

	// body
	Body string `json:"body,omitempty"`

	// eye catch url
	EyeCatchURL string `json:"eye_catch_url,omitempty"`

	// overview
	Overview string `json:"overview,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

MeArticlesDraftsCreate me articles drafts create swagger:model MeArticlesDraftsCreate

func (*MeArticlesDraftsCreate) MarshalBinary

func (m *MeArticlesDraftsCreate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MeArticlesDraftsCreate) UnmarshalBinary

func (m *MeArticlesDraftsCreate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MeArticlesDraftsCreate) Validate

func (m *MeArticlesDraftsCreate) Validate(formats strfmt.Registry) error

Validate validates this me articles drafts create

type MeInfoIcon

type MeInfoIcon struct {

	// icon image
	IconImage string `json:"icon_image,omitempty"`
}

MeInfoIcon me info icon swagger:model MeInfoIcon

func (*MeInfoIcon) MarshalBinary

func (m *MeInfoIcon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MeInfoIcon) UnmarshalBinary

func (m *MeInfoIcon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MeInfoIcon) Validate

func (m *MeInfoIcon) Validate(formats strfmt.Registry) error

Validate validates this me info icon

type MeInfoUpdate

type MeInfoUpdate struct {

	// self introduction
	SelfIntroduction string `json:"self_introduction,omitempty"`

	// user display name
	UserDisplayName string `json:"user_display_name,omitempty"`
}

MeInfoUpdate me info update swagger:model MeInfoUpdate

func (*MeInfoUpdate) MarshalBinary

func (m *MeInfoUpdate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MeInfoUpdate) UnmarshalBinary

func (m *MeInfoUpdate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MeInfoUpdate) Validate

func (m *MeInfoUpdate) Validate(formats strfmt.Registry) error

Validate validates this me info update

type MeWalletBalance

type MeWalletBalance struct {

	// private eth address
	PrivateEthAddress string `json:"private_eth_address,omitempty"`
}

MeWalletBalance me wallet balance swagger:model MeWalletBalance

func (*MeWalletBalance) MarshalBinary

func (m *MeWalletBalance) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MeWalletBalance) UnmarshalBinary

func (m *MeWalletBalance) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MeWalletBalance) Validate

func (m *MeWalletBalance) Validate(formats strfmt.Registry) error

Validate validates this me wallet balance

type Notification

type Notification struct {

	// acted user id
	ActedUserID string `json:"acted_user_id,omitempty"`

	// created at
	CreatedAt float64 `json:"created_at,omitempty"`

	// sort key
	SortKey int64 `json:"sort_key,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

Notification notification swagger:model Notification

func (*Notification) MarshalBinary

func (m *Notification) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Notification) UnmarshalBinary

func (m *Notification) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Notification) Validate

func (m *Notification) Validate(formats strfmt.Registry) error

Validate validates this notification

type Publish

type Publish struct {

	// tgas
	Tgas []string `json:"tgas"`

	// topic
	Topic string `json:"topic,omitempty"`
}

Publish publish swagger:model Publish

func (*Publish) MarshalBinary

func (m *Publish) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Publish) UnmarshalBinary

func (m *Publish) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Publish) Validate

func (m *Publish) Validate(formats strfmt.Registry) error

Validate validates this publish

type Topic

type Topic struct {

	// display name
	DisplayName string `json:"display_name,omitempty"`

	// index hash key
	IndexHashKey string `json:"index_hash_key,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// order
	Order int64 `json:"order,omitempty"`
}

Topic topic swagger:model Topic

func (*Topic) MarshalBinary

func (m *Topic) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Topic) UnmarshalBinary

func (m *Topic) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Topic) Validate

func (m *Topic) Validate(formats strfmt.Registry) error

Validate validates this topic

type UpdateArticle

type UpdateArticle struct {

	// body
	Body string `json:"body,omitempty"`

	// eye catch url
	EyeCatchURL string `json:"eye_catch_url,omitempty"`

	// overview
	Overview string `json:"overview,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

UpdateArticle update article swagger:model UpdateArticle

func (*UpdateArticle) MarshalBinary

func (m *UpdateArticle) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateArticle) UnmarshalBinary

func (m *UpdateArticle) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateArticle) Validate

func (m *UpdateArticle) Validate(formats strfmt.Registry) error

Validate validates this update article

type UserInfo

type UserInfo struct {

	// icon image url
	IconImageURL string `json:"icon_image_url,omitempty"`

	// self introduction
	SelfIntroduction string `json:"self_introduction,omitempty"`

	// user display name
	UserDisplayName string `json:"user_display_name,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

UserInfo user info swagger:model UserInfo

func (*UserInfo) MarshalBinary

func (m *UserInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserInfo) UnmarshalBinary

func (m *UserInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserInfo) Validate

func (m *UserInfo) Validate(formats strfmt.Registry) error

Validate validates this user info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL