This commit is contained in:
mlogclub
2026-04-09 10:01:23 +08:00
commit efe801b8bf
707 changed files with 110595 additions and 0 deletions
@@ -0,0 +1,25 @@
package open
import (
"cs-agent/internal/pkg/dto/response"
"cs-agent/internal/pkg/irisx"
"github.com/kataras/iris/v12"
"github.com/mlogclub/simple/web"
)
type ImWidgetController struct {
Ctx iris.Context
}
func (c *ImWidgetController) AnyConfig() *web.JsonResult {
channel := irisx.GetChannel(c.Ctx)
if channel == nil {
return web.JsonErrorMsg("接入渠道未初始化")
}
ret := response.WidgetConfigResponse{
ChannelID: channel.ChannelID,
}
return web.JsonData(ret)
}