@@ -319,7 +319,7 @@ func AddAudioLog(c *gin.Context) {
}
userinfo := user.GetInfoByClaims(c)
if err := community.AddAudioListenLog(userinfo, req.CommunityQuestionAudioID, req.SourceAgent); err != nil {
- response.Fail("操作失败: "+ err.Error(), c)
+ response.Fail("操作失败: "+err.Error(), c)
return
response.Ok("操作成功", c)
@@ -15,4 +15,6 @@ type YbCommunityAudioListenLog struct {
// TableName get sql table name.获取数据库表名
func (l *YbCommunityAudioListenLog) TableName() string {
return "yb_community_audio_listen_log"
-}
+}
+
@@ -6,4 +6,3 @@ func (l *YbCommunityAudioListenLog) Create() (err error) {
err = global.DEFAULT_MYSQL.Create(l).Error
-