Documentation ¶
Index ¶
- func Svg2Png(svgPath, pngPath string) error
- type DBService
- func (s *DBService) CreateELO(uin int64, name string, rate int) error
- func (s *DBService) CreatePGN(data string, whiteUin int64, blackUin int64, whiteName string, ...) error
- func (s *DBService) GetELOByUin(uin int64) (model.ELO, error)
- func (s *DBService) GetELORateByUin(uin int64) (int, error)
- func (s *DBService) GetHighestRateList() ([]model.ELO, error)
- func (s *DBService) UpdateELOByUin(uin int64, name string, rate int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBService ¶
type DBService struct {
// contains filtered or unexported fields
}
DBService 数据库服务
func (*DBService) CreatePGN ¶
func (s *DBService) CreatePGN(data string, whiteUin int64, blackUin int64, whiteName string, blackName string) error
CreatePGN 创建 PGN
func (*DBService) GetELOByUin ¶
GetELOByUin 获取 ELO
func (*DBService) GetELORateByUin ¶
GetELORateByUin 获取 ELO 等级分
func (*DBService) GetHighestRateList ¶
GetHighestRateList 获取最高的等级分列表
Click to show internal directories.
Click to hide internal directories.