model

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *sqlx.DB

Functions

This section is empty.

Types

type Connect

type Connect struct {
}

func DbInit

func DbInit() *Connect

func (*Connect) Close

func (con *Connect) Close()

func (*Connect) Exist

func (con *Connect) Exist(event leafBot.Event)

func (*Connect) IsSign

func (con *Connect) IsSign(event leafBot.Event) bool

return:

已经签到 :true
未签到: false

func (*Connect) SelctSign

func (con *Connect) SelctSign(event leafBot.Event) int

func (*Connect) Update

func (con *Connect) Update(n int, event leafBot.Event)

type Sign

type Sign struct {
	UserId      string `json:"user_id" db:"userId"`
	Num         int    `json:"num" db:"num"`
	Card        string `json:"card" db:"card"`
	Day         int    `json:"day" db:"day"`
	CurrentSign int    `json:"current_sign" db:"current_sign"`
}

Jump to

Keyboard shortcuts

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