first commit
This commit is contained in:
17
gateway/api/v1/internal/handler/test/test.go
Normal file
17
gateway/api/v1/internal/handler/test/test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
logic "gitlab.33.cn/chat/dtalk/gateway/api/v1/internal/logic/test"
|
||||
"gitlab.33.cn/chat/dtalk/gateway/api/v1/internal/svc"
|
||||
"gitlab.33.cn/chat/dtalk/pkg/api"
|
||||
)
|
||||
|
||||
func GetHelloWord(ctx *svc.ServiceContext) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
l := logic.NewTestLogic(c.Request.Context(), ctx)
|
||||
resp, err := l.GetHelloWorld()
|
||||
c.Set(api.ReqResult, resp)
|
||||
c.Set(api.ReqError, err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user