checkin_plugin

package
v0.0.0-...-ea214e1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAction

func CreateAction(c *gin.Context)

func Routes

func Routes(r *gin.RouterGroup)

Types

type Checkin

type Checkin struct {
	Id int64

	UserId int64

	Year  int
	Month time.Month
	Day   int

	Acc int // 连续签到次数

	CreatedAt time.Time
	UpdatedAt time.Time
}

func CreateCheckin

func CreateCheckin(user *user_plugin.User, when utils.Date) (*Checkin, error)

func (Checkin) TableName

func (c Checkin) TableName() string

type CheckinResp

type CheckinResp struct {
	Id int64

	UserId int64

	Year  int
	Month time.Month
	Day   int

	Acc int // 连续签到次数

	CreatedAt utils.Timestamp
	UpdatedAt utils.Timestamp
}

func (CheckinResp) Fields

func (c CheckinResp) Fields() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳