2024-01-19 12:06:30 +08:00
|
|
|
|
package callback
|
|
|
|
|
|
|
|
|
|
import (
|
2024-02-19 14:57:36 +08:00
|
|
|
|
"gitee.ltd/lxh/logger/log"
|
2024-01-19 12:06:30 +08:00
|
|
|
|
"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(¶m); err != nil {
|
|
|
|
|
response.New(ctx).SetError(err).Fail()
|
|
|
|
|
return
|
|
|
|
|
}
|
2024-02-19 14:57:36 +08:00
|
|
|
|
|
|
|
|
|
log.Debugf("机器人已启动,Id: %s", param.Robot)
|
2024-01-19 12:06:30 +08:00
|
|
|
|
}
|