diff --git a/API/Line.go b/API/Line.go index ad96e98..d7cbee7 100644 --- a/API/Line.go +++ b/API/Line.go @@ -31,7 +31,7 @@ func LineInfo(c *gin.Context) { return } - var SLine DB.SLine + var SLine = DB.SLine{} objID, _ := primitive.ObjectIDFromHex(c.Query("id")) DB.CLine.FindOne(tools.GetContext(), bson.M{"_id": objID}).Decode(&SLine) @@ -53,18 +53,21 @@ func AllLine(c *gin.Context) { c.Header("Access-Control-Allow-Origin", c.Request.Header.Get("Origin")) c.Header("Access-Control-Allow-Credentials", "true") - var aLine []DB.SLine + var aLine = []*DB.SLine{} cur, err := DB.CLine.Find(tools.GetContext(), bson.M{"ScenicId": c.Query("ScenicId")}) defer cur.Close(tools.GetContext()) if err == nil { for cur.Next(tools.GetContext()) { - var e DB.SLine + var e *DB.SLine cur.Decode(&e) aLine = append(aLine, e) } } - c.JSON(200, aLine) + c.JSON(200, tools.ResponseSeccess{ + 0, + aLine, + }) } diff --git a/Version.md b/Version.md index 4428fc5..86a70ba 100644 --- a/Version.md +++ b/Version.md @@ -57,6 +57,35 @@ 10. 增加/SysAds/List获取平台广告信息接口 +11. /AllLine推荐线路接口返回结果变更,增加固定结构。 + + ``` + { + errcode: 0, + result: [ ] + } + ``` + + + + + +##### 数据结构变更: + +1、标签表 + +2、平台广告表初始数据 + +2、root用户增加新模块权限 + + + +##### 销毁流程 + +1. + + + ##### 发布流程: @@ -67,8 +96,3 @@ 4. 使用 “生产环境地址” 打包公测版本至TestFlight 5. 发布至商店 - - -##### 销毁说明 - -1. \ No newline at end of file -- libgit2 0.21.0