model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 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 Flowers

type Flowers struct {
	ID        string    `json:"id"`
	UserName  string    `json:"user_name"`
	ToFlowID  string    `json:"to_flow_id"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type LikedUser

type LikedUser struct {
	gorm.Model
	ToTweetID    string `json:"to_tweet_id"`
	UserStaticID string `json:"user_static_id"`
}

type Reply

type Reply struct {
	ToTweetID    string    `json:"to_tweet_id"`
	UserStaticID string    `json:"user_static_id"`
	StaticID     string    `json:"static_id"`
	IsPrivate    bool      `json:"is_private"`
	Name         string    `json:"name"`
	Content      string    `json:"content"`
	LikeCount    int64     `json:"like_count"`
	IsLiked      bool      `json:"is_liked"`
	RetweetCount int64     `json:"retweet_count"`
	IsRetweeted  bool      `json:"is_retweeted"`
	ReplyCount   int64     `json:"reply_count"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
}

type Request

type Request struct {
	ID int64
}

type Response

type Response struct {
	Code    int
	Message string
}

type RetweetedUser

type RetweetedUser struct {
	gorm.Model
	ToTweetID    string `json:"to_tweet_id"`
	UserStaticID string `json:"user_static_id"`
}

type Tweet

type Tweet struct {
	ID             int64     `json:"id"`
	UserStaticID   string    `json:"user_static_id"`
	StaticID       string    `json:"static_id"`
	IsPrivate      bool      `json:"is_private"`
	Name           string    `json:"name"`
	Content        string    `json:"content"`
	LikedCount     int64     `json:"liked_count"`
	RetweetedCount int64     `json:"retweeted_count"`
	ReplyCount     int64     `json:"reply_count"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

type User

type User struct {
	ID        string `json:"id"`
	Password  string `json:"password"`
	UserName  string `json:"username"`
	Location  string `json:"location"`
	FreeSpace string `json:"free_space"`
}

Jump to

Keyboard shortcuts

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