@@ -417,13 +417,13 @@ func (b *BaseApi) UpdateAgentTelegramConfig(c *gin.Context) {
417417// @Tags AI
418418// @Summary Get Agent Discord channel config
419419// @Accept json
420- // @Param request body dto.AgentDiscordConfigReq true "request"
420+ // @Param request body dto.AgentIDReq true "request"
421421// @Success 200 {object} dto.AgentDiscordConfig
422422// @Security ApiKeyAuth
423423// @Security Timestamp
424424// @Router /ai/agents/channel/discord/get [post]
425425func (b * BaseApi ) GetAgentDiscordConfig (c * gin.Context ) {
426- var req dto.AgentDiscordConfigReq
426+ var req dto.AgentIDReq
427427 if err := helper .CheckBindAndValidate (& req , c ); err != nil {
428428 return
429429 }
@@ -458,13 +458,13 @@ func (b *BaseApi) UpdateAgentDiscordConfig(c *gin.Context) {
458458// @Tags AI
459459// @Summary Get Agent QQ Bot channel config
460460// @Accept json
461- // @Param request body dto.AgentWecomConfigReq true "request"
461+ // @Param request body dto.AgentIDReq true "request"
462462// @Success 200 {object} dto.AgentWecomConfig
463463// @Security ApiKeyAuth
464464// @Security Timestamp
465465// @Router /ai/agents/channel/wecom/get [post]
466466func (b * BaseApi ) GetAgentWecomConfig (c * gin.Context ) {
467- var req dto.AgentWecomConfigReq
467+ var req dto.AgentIDReq
468468 if err := helper .CheckBindAndValidate (& req , c ); err != nil {
469469 return
470470 }
@@ -499,13 +499,13 @@ func (b *BaseApi) UpdateAgentWecomConfig(c *gin.Context) {
499499// @Tags AI
500500// @Summary Get Agent DingTalk channel config
501501// @Accept json
502- // @Param request body dto.AgentDingTalkConfigReq true "request"
502+ // @Param request body dto.AgentIDReq true "request"
503503// @Success 200 {object} dto.AgentDingTalkConfig
504504// @Security ApiKeyAuth
505505// @Security Timestamp
506506// @Router /ai/agents/channel/dingtalk/get [post]
507507func (b * BaseApi ) GetAgentDingTalkConfig (c * gin.Context ) {
508- var req dto.AgentDingTalkConfigReq
508+ var req dto.AgentIDReq
509509 if err := helper .CheckBindAndValidate (& req , c ); err != nil {
510510 return
511511 }
@@ -540,13 +540,13 @@ func (b *BaseApi) UpdateAgentDingTalkConfig(c *gin.Context) {
540540// @Tags AI
541541// @Summary Get Agent QQ Bot channel config
542542// @Accept json
543- // @Param request body dto.AgentQQBotConfigReq true "request"
543+ // @Param request body dto.AgentIDReq true "request"
544544// @Success 200 {object} dto.AgentQQBotConfig
545545// @Security ApiKeyAuth
546546// @Security Timestamp
547547// @Router /ai/agents/channel/qqbot/get [post]
548548func (b * BaseApi ) GetAgentQQBotConfig (c * gin.Context ) {
549- var req dto.AgentQQBotConfigReq
549+ var req dto.AgentIDReq
550550 if err := helper .CheckBindAndValidate (& req , c ); err != nil {
551551 return
552552 }
@@ -622,13 +622,13 @@ func (b *BaseApi) CheckAgentPlugin(c *gin.Context) {
622622// @Tags AI
623623// @Summary Get Agent Security config
624624// @Accept json
625- // @Param request body dto.AgentSecurityConfigReq true "request"
625+ // @Param request body dto.AgentIDReq true "request"
626626// @Success 200 {object} dto.AgentSecurityConfig
627627// @Security ApiKeyAuth
628628// @Security Timestamp
629629// @Router /ai/agents/security/get [post]
630630func (b * BaseApi ) GetAgentSecurityConfig (c * gin.Context ) {
631- var req dto.AgentSecurityConfigReq
631+ var req dto.AgentIDReq
632632 if err := helper .CheckBindAndValidate (& req , c ); err != nil {
633633 return
634634 }
@@ -663,13 +663,13 @@ func (b *BaseApi) UpdateAgentSecurityConfig(c *gin.Context) {
663663// @Tags AI
664664// @Summary Get Agent Other config
665665// @Accept json
666- // @Param request body dto.AgentOtherConfigReq true "request"
666+ // @Param request body dto.AgentIDReq true "request"
667667// @Success 200 {object} dto.AgentOtherConfig
668668// @Security ApiKeyAuth
669669// @Security Timestamp
670670// @Router /ai/agents/other/get [post]
671671func (b * BaseApi ) GetAgentOtherConfig (c * gin.Context ) {
672- var req dto.AgentOtherConfigReq
672+ var req dto.AgentIDReq
673673 if err := helper .CheckBindAndValidate (& req , c ); err != nil {
674674 return
675675 }
@@ -745,13 +745,13 @@ func (b *BaseApi) UpdateAgentConfigFile(c *gin.Context) {
745745// @Tags AI
746746// @Summary List Agent skills
747747// @Accept json
748- // @Param request body dto.AgentSkillsReq true "request"
748+ // @Param request body dto.AgentIDReq true "request"
749749// @Success 200 {array} dto.AgentSkillItem
750750// @Security ApiKeyAuth
751751// @Security Timestamp
752752// @Router /ai/agents/skills/list [post]
753753func (b * BaseApi ) ListAgentSkills (c * gin.Context ) {
754- var req dto.AgentSkillsReq
754+ var req dto.AgentIDReq
755755 if err := helper .CheckBindAndValidate (& req , c ); err != nil {
756756 return
757757 }
0 commit comments