Browse Source

Merge branch 'yb/5.1' into debug

xiexiaoyuan 2 years ago
parent
commit
29e7d7baf5

+ 1 - 1
controller/community/question.go

@@ -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)

+ 3 - 1
models/tables/yb_community_audio_listen_log/entity.go

@@ -15,4 +15,6 @@ type YbCommunityAudioListenLog struct {
 // TableName get sql table name.获取数据库表名
 func (l *YbCommunityAudioListenLog) TableName() string {
 	return "yb_community_audio_listen_log"
-}
+}
+
+

+ 0 - 1
models/tables/yb_community_audio_listen_log/model.go

@@ -6,4 +6,3 @@ func (l *YbCommunityAudioListenLog) Create() (err error) {
 	err = global.DEFAULT_MYSQL.Create(l).Error
 	return
 }
-