service

package
v0.0.0-...-530d549 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(cfg *config.Config, store *store.UserStore, r *redis.Client, log logr.Logger) *Service

func (*Service) CreateUser

func (s *Service) CreateUser(ctx *gin.Context)

func (*Service) SlotCheck

func (s *Service) SlotCheck(ctx *gin.Context)

func (*Service) SlotRelease

func (s *Service) SlotRelease(ctx *gin.Context)

type SlotCheckResponse

type SlotCheckResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    struct {
		Rank      int    `json:"rank,omitempty"`
		SlotToken string `json:"slot_token,omitempty"`
	} `json:"data,omitempty"`
}

type SlotReq

type SlotReq struct {
	UserID string `json:"user_id"`
}

Jump to

Keyboard shortcuts

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