repo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: Apache-2.0 Imports: 3 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       int       `gorm:"column:id" db:"id" json:"id" form:"id"` //主键
	Sender   string    `gorm:"column:sender" db:"sender" json:"sender" form:"sender"`
	IsDone   int       `gorm:"column:is_done" db:"is_done" json:"is_done" form:"is_done"`
	Msg      string    `gorm:"column:msg" db:"msg" json:"msg" form:"msg"`
	CreateAt time.Time `gorm:"column:create_at" db:"create_at" json:"create_at" form:"create_at"`
	UpdateAt time.Time `gorm:"column:update_at" db:"update_at" json:"update_at" form:"update_at"`
}

type Nic

type Nic struct {
	Nic string `gorm:"column:nic" db:"nic" json:"nic" form:"nic"`
}

type RotBaseRepo

type RotBaseRepo struct {
	// contains filtered or unexported fields
}

LabelBaseRepo repo

func NewRotBaseRepo

func NewRotBaseRepo(db *gorm.DB) *RotBaseRepo

NewLabelBaseRepo 创建实例

func (RotBaseRepo) GetRotNic

func (r RotBaseRepo) GetRotNic() (string, error)

func (RotBaseRepo) InsertMsg

func (r RotBaseRepo) InsertMsg(msg Msg) error

func (RotBaseRepo) UpdateAccomplish

func (r RotBaseRepo) UpdateAccomplish(id int) error

Jump to

Keyboard shortcuts

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