From 94413a9e430b886971d8d6bcfe2858fd6ee6a38f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 19 Jul 2024 11:46:13 +0800 Subject: [PATCH] 1 --- server/marketserver/api/v1/user/enter.go | 5 ++++ server/marketserver/api/v1/user/user.go | 29 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 server/marketserver/api/v1/user/enter.go create mode 100644 server/marketserver/api/v1/user/user.go diff --git a/server/marketserver/api/v1/user/enter.go b/server/marketserver/api/v1/user/enter.go new file mode 100644 index 00000000..e21f9c77 --- /dev/null +++ b/server/marketserver/api/v1/user/enter.go @@ -0,0 +1,5 @@ +package user + +type ApiGroup struct { + UserApi +} diff --git a/server/marketserver/api/v1/user/user.go b/server/marketserver/api/v1/user/user.go new file mode 100644 index 00000000..c48edb25 --- /dev/null +++ b/server/marketserver/api/v1/user/user.go @@ -0,0 +1,29 @@ +package asset + +import ( + "q5" + "f5" + "main/constant" + "main/common" + "jccommon" + "fmt" + "mt" + "strings" + . "main/global" + "github.com/gin-gonic/gin" +) + +type UserApi struct { + +} + +func (this *UserApi) Info(c *gin.Context) { + rspObj := struct { + ErrCode int32 `json:"errcode"` + ErrMsg string `json:"errmsg"` + ContributionPoint int64 `json:"contribution_point"` + Gold float64 `json:"gold"` + }{ + } + c.JSON(200, rspObj) +}