MCPcopy Create free account
hub / github.com/53AI/53AIHub / GetRecordingConfig

Function GetRecordingConfig

api/controller/recording_admin.go:58–70  ·  view source on GitHub ↗

GetRecordingConfig godoc @Summary 获取录音配置 @Description 获取录音功能开关和解析平台选择 @Tags 录音管理 @Produce json @Security BearerAuth @Success 200 {object} model.CommonResponse{data=service.RecordingConfigResult} @Router /api/admin/recordings/config [get]

(c *gin.Context)

Source from the content-addressed store, hash-verified

56// @Success 200 {object} model.CommonResponse{data=service.RecordingConfigResult}
57// @Router /api/admin/recordings/config [get]
58func GetRecordingConfig(c *gin.Context) {
59 eid := config.GetEID(c)
60 svc := service.NewRecordingAdminService(eid)
61
62 result, err := svc.GetRecordingConfig(c)
63 if err != nil {
64 logger.SysErrorf("【录音配置】获取失败: eid=%d err=%v", eid, err)
65 c.JSON(http.StatusInternalServerError, model.SystemError.ToErrorResponse(err))
66 return
67 }
68
69 c.JSON(http.StatusOK, model.Success.ToResponse(result))
70}
71
72// UpdateRecordingConfig godoc
73// @Summary 更新录音配置

Callers

nothing calls this directly

Calls 4

GetRecordingConfigMethod · 0.95
GetEIDMethod · 0.80
ToErrorResponseMethod · 0.80
ToResponseMethod · 0.80

Tested by

no test coverage detected