feat: bind tribally account

This commit is contained in:
2025-03-20 17:15:54 +08:00
parent 3f09a65806
commit 937244a1a0
10 changed files with 202 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package task
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"nova_task/internal/logic/task"
"nova_task/internal/svc"
)
// 绑定Tribally账号
func BindTriballyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := task.NewBindTriballyLogic(r.Context(), svcCtx)
resp, err := l.BindTribally()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}