feat: payjs service is ready

This commit is contained in:
RockYang
2024-01-06 15:53:30 +08:00
parent b1ee34ba0c
commit 2f8d2f4854
4 changed files with 97 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import (
"chatplus/utils"
"chatplus/utils/resp"
"fmt"
"github.com/gin-gonic/gin"
"gorm.io/gorm"
)
@@ -20,7 +21,7 @@ func NewTestHandler(db *gorm.DB, snowflake *service.Snowflake) *TestHandler {
}
func (h *TestHandler) Test(c *gin.Context) {
h.initMjTaskId(c)
h.initUserNickname(c)
}
func (h *TestHandler) initUserNickname(c *gin.Context) {