service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Svg2Png

func Svg2Png(svgPath, pngPath string) error

Types

type DBService

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

DBService 数据库服务

func NewDBService

func NewDBService() *DBService

NewDBService 创建数据库服务

func (*DBService) CreateELO

func (s *DBService) CreateELO(uin int64, name string, rate int) error

CreateELO 创建 ELO

func (*DBService) CreatePGN

func (s *DBService) CreatePGN(data string, whiteUin int64, blackUin int64, whiteName string, blackName string) error

CreatePGN 创建 PGN

func (*DBService) GetELOByUin

func (s *DBService) GetELOByUin(uin int64) (model.ELO, error)

GetELOByUin 获取 ELO

func (*DBService) GetELORateByUin

func (s *DBService) GetELORateByUin(uin int64) (int, error)

GetELORateByUin 获取 ELO 等级分

func (*DBService) GetHighestRateList

func (s *DBService) GetHighestRateList() ([]model.ELO, error)

GetHighestRateList 获取最高的等级分列表

func (*DBService) UpdateELOByUin

func (s *DBService) UpdateELOByUin(uin int64, name string, rate int) error

UpdateELOByUin 更新 ELO 等级分

Jump to

Keyboard shortcuts

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