controller

package
v0.0.0-...-c9f28b2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

func NewLog

func NewLog(ctx *context.Context, userId string) (*Log, error)

func (*Log) Add

func (c *Log) Add(campus string, date time.Time, logType string, label string, code string) error

ログの追加

func (*Log) DeleteAll

func (c *Log) DeleteAll() error

全ログ削除

func (*Log) GetLogs

func (c *Log) GetLogs() (*[]database.Log, error)

全ログ取得

type User

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

func NewUser

func NewUser(ctx *context.Context) (*User, error)

func (*User) Add

func (c *User) Add(name string) (*database.User, error)

ユーザを追加する

func (*User) ChangeName

func (c *User) ChangeName(id string, name string) error

func (*User) Delete

func (c *User) Delete(id string) error

ユーザを削除する

func (*User) Get

func (c *User) Get(id string) (*database.User, error)

ユーザ情報を取得する

func (*User) PlusLog

func (c *User) PlusLog(id string, pulsValue int) error

ログ数をインクリメントする

func (*User) Rank

func (c *User) Rank() (database.Ranks, error)

ランキング取得

Jump to

Keyboard shortcuts

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