go-wxhelper/api/callback/hook.go
2024-02-19 14:57:36 +08:00

22 lines
456 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package callback
import (
"gitee.ltd/lxh/logger/log"
"github.com/gin-gonic/gin"
"wechat-robot/model/param/callback"
"wechat-robot/pkg/response"
)
// RobotHookNotify
// @description: 机器人HOOK后回调
// @param ctx
func RobotHookNotify(ctx *gin.Context) {
var param callback.RobotHook
if err := ctx.ShouldBind(&param); err != nil {
response.New(ctx).SetError(err).Fail()
return
}
log.Debugf("机器人已启动Id: %s", param.Robot)
}