api

package
v0.0.0-...-ed9b52c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg struct {
	Id        int64         `json:"-"`
	Type      int           `gorm:"column:type" json:"type"`
	SendId    string        `gorm:"column:send_id" json:"send_id"`
	IsRead    int           `gorm:"column:is_read" json:"is_read"`
	ReceiveId string        `gorm:"column:receive_id" json:"receive_id"`
	Content   string        `gorm:"column:content" json:"content"`
	SendAt    models.MyTime `gorm:"column:send_at" json:"send_at"`
	CreatedAt models.MyTime `gorm:"column:created_at" json:"created_at"`
}

func (Msg) TableName

func (Msg) TableName() string

type User

type User struct {
	gorm.Model
	Account  string `gorm:"column:account" json:"account"`
	Password string `gorm:"column:password" json:"password"`
	NickName string `gorm:"column:nickname" json:"nickname"`
	Status   int    `gorm:"column:status" json:"status"`
}

func (User) TableName

func (User) TableName() string

Jump to

Keyboard shortcuts

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