model

package
v0.0.0-...-11834cf Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	ID        uint      `json:"id" gorm:"primary_key"`
	CreatedAt time.Time `json:"created_at" gorm:"created_at"`
	UpdatedAt time.Time `json:"updated_at" gorm:"updated_at"`
}

type Notify

type Notify struct {
	Model
	UserUUID         uuid.UUID `json:"user_uuid" gorm:"user_uuid comment:用户uuid"`
	NotifyGap        int       `json:"notify_gap" gorm:"notify_gap comment:通知间隔,单位分钟"`
	NotifyCount      int       `json:"notify_count" gorm:"notify_count comment:通知次数"`
	AllNotifyCount   int       `json:"all_notify_count" gorm:"all_notify_count comment:总通知次数"`
	LastNotify       time.Time `json:"last_notify" gorm:"last_notify comment:上次发送通知日期"`
	NotifyLimitCount int       `json:"notify_limit_count" gorm:"notify_limit_count"`
}

func (Notify) TableName

func (n Notify) TableName() string

type Sub

type Sub struct {
	Model
	UserUUID uuid.UUID      `json:"user_uuid"`
	SubWords datatypes.JSON `json:"sub_words"`
}

Jump to

Keyboard shortcuts

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