sync: soul-api 接口逻辑、soul-api 后端 | 原因: 后端接口逻辑修改、后端代码修改

This commit is contained in:
卡若
2026-03-09 04:57:29 +08:00
parent 13e6c21953
commit 874900d520
2 changed files with 170 additions and 3 deletions

View File

@@ -336,9 +336,10 @@ func DBBookAction(c *gin.Context) {
Content string `json:"content"`
Price *float64 `json:"price"`
IsFree *bool `json:"isFree"`
IsNew *bool `json:"isNew"` // stitch_soul标记最新新增
EditionStandard *bool `json:"editionStandard"` // 是否属于普通版
EditionPremium *bool `json:"editionPremium"` // 是否属于增值版
IsNew *bool `json:"isNew"`
HotScore *float64 `json:"hotScore"`
EditionStandard *bool `json:"editionStandard"`
EditionPremium *bool `json:"editionPremium"`
}
if err := c.ShouldBindJSON(&body); err != nil {
c.JSON(http.StatusOK, gin.H{"success": false, "error": "请求体无效"})