model

package
v0.0.0-...-2d9c92e Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MPL-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 App

type App struct {
	ID        int       `db:"id,primary"`
	Name      string    `db:"name"`
	Secret    string    `db:"secret"`
	Status    int       `db:"status"`
	Remark    string    `db:"remark"`
	CreatedAt time.Time `db:"created_at"`
	UpdatedAt time.Time `db:"updated_at"`
	AccountID int       `db:"account_id"`
}

func (App) Table

func (t App) Table() string

type AppChannel

type AppChannel struct {
	ID            int64     `db:"id,primary"`
	ChannelName   string    `db:"channel_name"`
	ChannelType   string    `db:"channel_type"`
	ChannelKey    string    `db:"channel_key"`
	ChannelDomain string    `db:"channel_domain"`
	ChannelSecret string    `db:"channel_secret"`
	ExtProperties string    `db:"ext_properties"`
	IsDefault     int       `db:"is_default"`
	SendOrder     int       `db:"send_order"`
	Quota         int       `db:"quota"`
	CreatedAt     time.Time `db:"created_at"`
	UpdatedAt     time.Time `db:"updated_at"`
}

func (AppChannel) Table

func (t AppChannel) Table() string

type AppSendLog

type AppSendLog struct {
	ID         int             `db:"id,primary"`
	AccountID  int             `db:"account_id"`
	AppID      int             `db:"app_id"`
	SendStatus int             `db:"send_status"`
	Reason     string          `db:"reason"`
	Extra      json.RawMessage `db:"extra"`
	CreatedAt  time.Time       `db:"created_at"`
}

func (AppSendLog) Table

func (t AppSendLog) Table() string

Jump to

Keyboard shortcuts

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