123456789101112131415161718 |
- package controller
- import (
- "github.com/gin-gonic/gin"
- "github.com/mhaya/game/game_cluster/internal/code"
- "github.com/mhaya/game/game_cluster/nodes/adminapi/common"
- "github.com/mhaya/game/game_cluster/nodes/adminapi/service"
- )
- func GetUserCount(ctx *gin.Context) {
- resp := service.GetUserCount()
- common.PackOkResult(ctx, code.OK, resp)
- }
- func GetUserList(ctx *gin.Context) {
- resp := service.GetUserList(ctx.Query("userName"))
- common.PackOkResult(ctx, code.OK, resp)
- }
|