database

package
v0.0.0-...-a9933ba Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientOrPanic

func GetClientOrPanic() *gorm.DB

Types

type OpenAccountModel

type OpenAccountModel struct {
	ID                int    `gorm:"primaryKey" json:"id"`
	AccessToken       string `json:"access_token"`
	AccessTokenSecret string `json:"access_token_secret"`
}

type TweetModel

type TweetModel struct {
	ID            string `gorm:"primaryKey" json:"id"`
	Content       string `json:"content"`
	UserID        string `json:"user_id"`
	RetweetCount  int    `json:"retweet_count"`
	FavoriteCount int    `json:"favorite_count"`
	Lang          string `json:"lang"`
	CreatedAt     string `json:"created_at"`
}

Jump to

Keyboard shortcuts

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