forked from lxh/go-wxhelper
19 lines
371 B
Go
19 lines
371 B
Go
|
package callback
|
||
|
|
||
|
import (
|
||
|
"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
|
||
|
}
|
||
|
}
|