repository

package
v0.0.0-...-e4a9a5f Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 LineUser

type LineUser struct {
	UserID        string
	LineUserToken string
}

func (*LineUser) InsertLineUser

func (lu *LineUser) InsertLineUser() error

func (*LineUser) SelectLineUserByID

func (lu *LineUser) SelectLineUserByID(userID string) *LineUser

type User

type User struct {
	ID           string
	UserName     string
	UserLineID   string
	UserPassword string
}

func SelectUserByID

func SelectUserByID(userID string) *User

func SelectUserByPassword

func SelectUserByPassword(pass string) (*User, error)

func SelectUserByUserName

func SelectUserByUserName(userName string) (*User, error)

type WakeupData

type WakeupData struct {
	ID         string
	UserID     string
	WakeupDay  string
	WakeupTime string
	CreatedAt  string
	UpdatedAt  string
}

func CreateWakeupData

func CreateWakeupData() *WakeupData

func (*WakeupData) Insert

func (ws *WakeupData) Insert() error

func (*WakeupData) SelectByID

func (ws *WakeupData) SelectByID(id string) *WakeupData

func (*WakeupData) SelectByUserID

func (ws *WakeupData) SelectByUserID(userID string) (*WakeupData, error)

type WakeupScore

type WakeupScore struct {
	UserID string
	Score  string
}

1:1 User

func (*WakeupScore) SelectByID

func (ws *WakeupScore) SelectByID(userID string) *WakeupScore

Jump to

Keyboard shortcuts

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