diff --git a/app/hdl/friend_circle/hdl_comment.go b/app/hdl/friend_circle/hdl_comment.go index 6b82306..6a615e3 100644 --- a/app/hdl/friend_circle/hdl_comment.go +++ b/app/hdl/friend_circle/hdl_comment.go @@ -203,7 +203,7 @@ func CommentDelete(c *gin.Context) { // @Accept json // @Produce json // @param Authorization header string true "验证参数Bearer和token空格拼接" -// @Param comment_index_id query string "评论文档记录" +// @Param comment_index_id query string true "评论文档记录" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" // @Router /api/v1/circleFriends/CommentLike [Get] @@ -271,7 +271,7 @@ func CommentLike(c *gin.Context) { // @Accept json // @Produce json // @param Authorization header string true "验证参数Bearer和token空格拼接" -// @Param comment_index_id query string "评论文档记录" +// @Param comment_index_id query string true "评论文档记录" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" // @Router /api/v1/circleFriends/CommentLike [Get] diff --git a/app/hdl/friend_circle/hdl_friend_circle.go b/app/hdl/friend_circle/hdl_friend_circle.go index 6f481d0..16c9ccd 100644 --- a/app/hdl/friend_circle/hdl_friend_circle.go +++ b/app/hdl/friend_circle/hdl_friend_circle.go @@ -72,7 +72,7 @@ func IsCanPublish(c *gin.Context) { // @Accept json // @Produce json // @param Authorization header string true "验证参数Bearer和token空格拼接" -// @Param req body comm.PublishReq true "请求参数" +// @Param req body friend_circles.PublishReq true "请求参数" // @Success 200 {string} "success" // @Failure 400 {object} md.Response "具体错误" // @Router /api/v1/circleFriends/public [POST] diff --git a/app/hdl/hdl_playlet.go b/app/hdl/hdl_playlet.go new file mode 100644 index 0000000..d844e9d --- /dev/null +++ b/app/hdl/hdl_playlet.go @@ -0,0 +1,35 @@ +package hdl + +import ( + "applet/app/svc" + "github.com/gin-gonic/gin" +) + +// PlayletBase +// @Summary 短视频-基本信息 +// @Tags 短视频 +// @Description 短视频-基本信息 +// @Accept json +// @Produce json +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Success 200 {object} md.PlayletBaseData "具体数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/v1/playlet/base [get] +func PlayletBase(c *gin.Context) { + svc.PlayletBase(c) +} + +// PlayletReward +// @Summary 实名认证-保存 +// @Tags 实名认证 +// @Description 实名认证-保存 +// @Accept json +// @Produce json +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Param req body md.PlayletRewardRequest true "参数" +// @Success 200 {string} "具体数据" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/v1/playlet/reward [post] +func PlayletReward(c *gin.Context) { + svc.PlayletReward(c) +} diff --git a/app/md/md_playlet.go b/app/md/md_playlet.go new file mode 100644 index 0000000..d864cd0 --- /dev/null +++ b/app/md/md_playlet.go @@ -0,0 +1,14 @@ +package md + +type PlayletBaseData struct { + Reward string `json:"reward" example:"单次奖励"` + Total string `json:"total" example:"可领取总次数"` + FirstCount string `json:"first_count" example:"首次可观看集数"` + SecondCount string `json:"second_count" example:"看一次广告解锁集数"` + Leave string `json:"leave" example:"剩余次数"` + Sum string `json:"sum" example:"奖励总数"` + CoinName string `json:"coin_name" example:"积分名称"` +} +type PlayletRewardRequest struct { + Id string `json:"id" example:"广告id"` +} diff --git a/app/router/router.go b/app/router/router.go index da1bcd5..2e3632b 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -188,6 +188,11 @@ func route(r *gin.RouterGroup) { rVideo.GET("/base", hdl.VideoBase) //基础数据 rVideo.POST("/reward", hdl.VideoReward) //奖励 } + rPlaylet := r.Group("/playlet") //短剧 + { + rPlaylet.GET("/base", hdl.PlayletBase) //基础数据 + rPlaylet.POST("/reward", hdl.PlayletReward) //奖励 + } } func rCircleFriends(r *gin.RouterGroup) { diff --git a/app/svc/svc_playlet.go b/app/svc/svc_playlet.go new file mode 100644 index 0000000..b58dd08 --- /dev/null +++ b/app/svc/svc_playlet.go @@ -0,0 +1,119 @@ +package svc + +import ( + "applet/app/db" + "applet/app/e" + "applet/app/md" + "applet/app/utils" + "code.fnuoos.com/EggPlanet/egg_models.git/src/implement" + "code.fnuoos.com/EggPlanet/egg_models.git/src/model" + "code.fnuoos.com/EggPlanet/egg_system_rules.git/enum" + md2 "code.fnuoos.com/EggPlanet/egg_system_rules.git/rule/egg_energy/md" + "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" + "github.com/gin-gonic/gin" + "github.com/tidwall/gjson" + "time" +) + +func PlayletBase(c *gin.Context) { + playletBase := GetSysCfgStr("playlet_base") + var res = md.PlayletBaseData{ + Reward: gjson.Get(playletBase, "reward").String(), + Total: gjson.Get(playletBase, "total").String(), + FirstCount: gjson.Get(playletBase, "first_count").String(), + SecondCount: gjson.Get(playletBase, "second_count").String(), + Leave: gjson.Get(playletBase, "total").String(), + Sum: "0.00", + CoinName: "活跃值", + } + user := GetUser(c) + //剩余次数 + NewPlayletTotalDb := implement.NewPlayletTotalDb(db.Db) + total, _ := NewPlayletTotalDb.GetPlayletTotal(utils.Int64ToStr(user.Id), time.Now().Format("20060102")) + if total != nil { + res.Leave = utils.IntToStr(utils.StrToInt(res.Total) - total.Total) + if utils.StrToInt(res.Leave) < 0 { + res.Leave = "0" + } + } + NewEggEnergyBasicSettingDb := implement.NewEggEnergyBasicSettingDb(db.Db) + eggData, _ := NewEggEnergyBasicSettingDb.EggEnergyBasicSettingGetOne() + NewUserVirtualAmountDb := implement.NewUserVirtualAmountDb(db.Db) + coin, _ := NewUserVirtualAmountDb.GetUserVirtualWalletBySession(user.Id, eggData.PersonEggPointsCoinId) + if coin != nil { + res.Sum = coin.Amount + } + e.OutSuc(c, res, nil) + return +} + +func PlayletReward(c *gin.Context) { + var args md.PlayletRewardRequest + if err := c.ShouldBindJSON(&args); err != nil { + e.OutErr(c, e.ERR_INVALID_ARGS, err) + return + } + eg := db.Db + playletBase := GetSysCfgStr("playlet_base") + sess := eg.NewSession() + defer sess.Close() + sess.Begin() + user := GetUser(c) + NewPlayletTotalDb := implement.NewPlayletTotalDb(db.Db) + total, _ := NewPlayletTotalDb.GetPlayletTotalSess(sess, utils.Int64ToStr(user.Id), time.Now().Format("20060102")) + if total == nil { + total = &model.PlayletTotal{ + Uid: int(user.Id), + Date: utils.StrToInt(time.Now().Format("20060102")), + Time: time.Now(), + } + insert, err := sess.Insert(total) + if insert == 0 || err != nil { + sess.Rollback() + + e.OutErr(c, 400, e.NewErr(400, "获取奖励失败")) + return + } + } + Leave := utils.StrToInt(gjson.Get(playletBase, "total").String()) - total.Total + if Leave-1 < 0 { + sess.Rollback() + e.OutErr(c, 400, e.NewErr(400, "今天已领取完")) + return + } + total.Total++ + + update, err2 := sess.Where("id=?", total.Id).Cols("total").Update(total) + if update == 0 || err2 != nil { + sess.Rollback() + e.OutErr(c, 400, e.NewErr(400, "获取奖励失败")) + return + } + sess.Commit() + ch, err := rabbit.Cfg.Pool.GetChannel() + if err == nil { + defer ch.Release() + NewEggEnergyBasicSettingDb := implement.NewEggEnergyBasicSettingDb(db.Db) + eggData, _ := NewEggEnergyBasicSettingDb.EggEnergyBasicSettingGetOne() + err = ch.PublishV2(md2.EggEnergyExchange, md2.EggEnergyStructForDealUserVirtualCoinData{ + Kind: "add", + Title: enum.EggEnergyPlayletRewardPersonalActiveCoin.String(), + TransferType: int(enum.EggEnergyPlayletRewardPersonalActiveCoin), + CoinId: eggData.PersonEggPointsCoinId, + Uid: user.Id, + Amount: utils.StrToFloat64(gjson.Get(playletBase, "reward").String()), + }, md2.EggEnergyRoutKeyForDealUserVirtualCoinData) + if err != nil { + ch.PublishV2(md2.EggEnergyExchange, md2.EggEnergyStructForDealUserVirtualCoinData{ + Kind: "add", + Title: enum.EggEnergyPlayletRewardPersonalActiveCoin.String(), + TransferType: int(enum.EggEnergyPlayletRewardPersonalActiveCoin), + CoinId: eggData.PersonEggPointsCoinId, + Uid: user.Id, + Amount: utils.StrToFloat64(gjson.Get(playletBase, "reward").String()), + }, md2.EggEnergyRoutKeyForDealUserVirtualCoinData) + } + } + e.OutSuc(c, "success", nil) + return +} diff --git a/app/svc/svc_video.go b/app/svc/svc_video.go index 56be80f..368fdb9 100644 --- a/app/svc/svc_video.go +++ b/app/svc/svc_video.go @@ -97,8 +97,8 @@ func VideoReward(c *gin.Context) { eggData, _ := NewEggEnergyBasicSettingDb.EggEnergyBasicSettingGetOne() err = ch.PublishV2(md2.EggEnergyExchange, md2.EggEnergyStructForDealUserVirtualCoinData{ Kind: "add", - Title: enum.EggEnergyWatchAdRewardPersonalActiveCoin.String(), - TransferType: int(enum.EggEnergyWatchAdRewardPersonalActiveCoin), + Title: enum.EggEnergyVideoRewardPersonalActiveCoin.String(), + TransferType: int(enum.EggEnergyVideoRewardPersonalActiveCoin), CoinId: eggData.PersonEggPointsCoinId, Uid: user.Id, Amount: utils.StrToFloat64(gjson.Get(videoBase, "reward").String()), @@ -106,8 +106,8 @@ func VideoReward(c *gin.Context) { if err != nil { ch.PublishV2(md2.EggEnergyExchange, md2.EggEnergyStructForDealUserVirtualCoinData{ Kind: "add", - Title: enum.EggEnergyWatchAdRewardPersonalActiveCoin.String(), - TransferType: int(enum.EggEnergyWatchAdRewardPersonalActiveCoin), + Title: enum.EggEnergyVideoRewardPersonalActiveCoin.String(), + TransferType: int(enum.EggEnergyVideoRewardPersonalActiveCoin), CoinId: eggData.PersonEggPointsCoinId, Uid: user.Id, Amount: utils.StrToFloat64(gjson.Get(videoBase, "reward").String()), diff --git a/docs/docs.go b/docs/docs.go index 0e23939..660daf4 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,4 +1,5 @@ -// Package docs Code generated by swaggo/swag. DO NOT EDIT +// Code generated by swaggo/swag. DO NOT EDIT. + package docs import "github.com/swaggo/swag" @@ -393,9 +394,493 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "具体数据", + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.AdvertisingCheck" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/advertising/detail": { + "post": { + "description": "广告位详情", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "广告位" + ], + "summary": "广告位详情", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "注册参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AdvertisingReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.AdvertisingSpace" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/advertising/state": { + "post": { + "description": "广告状态 看完之后拿到广告唯一值", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "广告位" + ], + "summary": "广告状态 看完之后拿到广告唯一值", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "注册参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AdvertisingReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.AdvertisingState" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/CommentDelete/{$comment_index_id}": { + "delete": { + "description": "评论点赞", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-删除评论", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/CommentLike": { + "get": { + "description": "评论取消点赞", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-评论取消点赞", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "评论文档记录", + "name": "comment_index_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/cancelLike": { + "post": { + "description": "取消点赞朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-取消点赞朋友圈", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.EggFriendCircleCancelLikeReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/comment": { + "get": { + "description": "是否可以评论", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-评论", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "许可链接", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/commentDetail": { + "get": { + "description": "评论详情", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-评论详情", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "评论文档记录", + "name": "comment_index_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/commentList": { + "post": { + "description": "评论列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-评论列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "朋友圈文档记录", + "name": "circle_index_id", + "in": "query", + "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.CommentListReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/delete": { + "delete": { + "description": "删除朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-删除朋友圈", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.EggFriendCircleDelReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/isCanComment": { + "get": { + "description": "是否可以评论", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-是否可以评论", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/isCanPublish": { + "get": { + "description": "是否可以发布朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-是否可以发布朋友圈", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", "schema": { - "$ref": "#/definitions/md.AdvertisingCheck" + "type": "string" } }, "400": { @@ -407,9 +892,9 @@ const docTemplate = `{ } } }, - "/api/v1/advertising/detail": { + "/api/v1/circleFriends/like": { "post": { - "description": "广告位详情", + "description": "点赞朋友圈", "consumes": [ "application/json" ], @@ -417,9 +902,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "广告位" + "朋友圈" ], - "summary": "广告位详情", + "summary": "朋友圈-点赞朋友圈", "parameters": [ { "type": "string", @@ -429,20 +914,20 @@ const docTemplate = `{ "required": true }, { - "description": "注册参数", + "description": "请求参数", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AdvertisingReq" + "$ref": "#/definitions/friend_circles.EggFriendCircleLikeReq" } } ], "responses": { "200": { - "description": "具体数据", + "description": "success", "schema": { - "$ref": "#/definitions/md.AdvertisingSpace" + "type": "string" } }, "400": { @@ -454,9 +939,9 @@ const docTemplate = `{ } } }, - "/api/v1/advertising/state": { + "/api/v1/circleFriends/mySelfList": { "post": { - "description": "广告状态 看完之后拿到广告唯一值", + "description": "我的朋友圈列表", "consumes": [ "application/json" ], @@ -464,9 +949,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "广告位" + "朋友圈" ], - "summary": "广告状态 看完之后拿到广告唯一值", + "summary": "朋友圈-我的朋友圈列表", "parameters": [ { "type": "string", @@ -476,20 +961,20 @@ const docTemplate = `{ "required": true }, { - "description": "注册参数", + "description": "签名上传url", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.AdvertisingReq" + "$ref": "#/definitions/friend_circles.MySelfListReq" } } ], "responses": { "200": { - "description": "具体数据", + "description": "返回数据", "schema": { - "$ref": "#/definitions/md.AdvertisingState" + "$ref": "#/definitions/friend_circles.MySelfListResp" } }, "400": { @@ -501,9 +986,9 @@ const docTemplate = `{ } } }, - "/api/v1/circleFriends/comment": { - "get": { - "description": "是否可以评论", + "/api/v1/circleFriends/public": { + "post": { + "description": "发布朋友圈", "consumes": [ "application/json" ], @@ -513,7 +998,7 @@ const docTemplate = `{ "tags": [ "朋友圈" ], - "summary": "朋友圈-评论", + "summary": "朋友圈-发布朋友圈", "parameters": [ { "type": "string", @@ -521,11 +1006,20 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.PublishReq" + } } ], "responses": { "200": { - "description": "许可链接", + "description": "success", "schema": { "type": "string" } @@ -539,9 +1033,9 @@ const docTemplate = `{ } } }, - "/api/v1/circleFriends/isCanComment": { - "get": { - "description": "是否可以评论", + "/api/v1/circleFriends/share": { + "post": { + "description": "分享后朋友圈分享数(增加)", "consumes": [ "application/json" ], @@ -551,7 +1045,7 @@ const docTemplate = `{ "tags": [ "朋友圈" ], - "summary": "朋友圈-是否可以评论", + "summary": "朋友圈-分享后朋友圈分享数(增加)", "parameters": [ { "type": "string", @@ -559,11 +1053,20 @@ const docTemplate = `{ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.EggFriendCircleShareReq" + } } ], "responses": { "200": { - "description": "许可链接", + "description": "success", "schema": { "type": "string" } @@ -1864,6 +2367,91 @@ const docTemplate = `{ } } }, + "/api/v1/playlet/base": { + "get": { + "description": "短视频-基本信息", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "短视频" + ], + "summary": "短视频-基本信息", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.PlayletBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/playlet/reward": { + "post": { + "description": "实名认证-保存", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "实名认证" + ], + "summary": "实名认证-保存", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.PlayletRewardRequest" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/v1/pointsCenter/basic": { "get": { "description": "上部分基础信息(获取)", @@ -2418,7 +3006,9 @@ const docTemplate = `{ "name": "req", "in": "body", "required": true, - "schema": {} + "schema": { + "type": "object" + } } ], "responses": { @@ -2740,6 +3330,91 @@ const docTemplate = `{ } } }, + "/api/v1/video/base": { + "get": { + "description": "短视频-基本信息", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "短视频" + ], + "summary": "短视频-基本信息", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.VideoBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/video/reward": { + "post": { + "description": "实名认证-保存", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "实名认证" + ], + "summary": "实名认证-保存", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.VideoRewardRequest" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/v1/wallet/amountFlow": { "get": { "description": "余额明细(获取)", @@ -3114,13 +3789,75 @@ const docTemplate = `{ "description": "每页大小", "type": "integer" }, - "page": { - "description": "页数", + "page": { + "description": "页数", + "type": "integer" + }, + "total": { + "description": "总数据量", + "type": "integer" + } + } + }, + "code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd": { + "type": "object", + "properties": { + "amount": { + "type": "string" + }, + "create_time": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "im_data": { + "type": "string" + }, + "im_uid": { + "type": "integer" + }, + "ord_no": { + "type": "string" + }, + "received_im_user_ids": { + "type": "string" + }, + "received_times": { + "type": "string" + }, + "received_user_amount": { + "type": "string" + }, + "received_user_ids": { + "type": "string" + }, + "red_packet_balance_amount": { + "type": "string" + }, + "red_packet_balance_nums": { + "type": "integer" + }, + "red_packet_nums": { "type": "integer" }, - "total": { - "description": "总数据量", + "red_packet_type": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "uid": { "type": "integer" + }, + "update_time": { + "type": "string" + }, + "wait_draw_im_user_ids": { + "type": "string" + }, + "wait_draw_user_ids": { + "type": "string" } } }, @@ -3150,6 +3887,169 @@ const docTemplate = `{ } } }, + "friend_circles.CommentListReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "朋友圈文档记录", + "type": "string" + }, + "page": { + "description": "页码", + "type": "integer" + }, + "page_size": { + "description": "每页数量", + "type": "integer" + } + } + }, + "friend_circles.EggFriendCircleCancelLikeReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleDelReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleEsStruct": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "朋友圈文档记录", + "type": "string" + }, + "comment_nums": { + "description": "评论数", + "type": "integer" + }, + "content": { + "description": "文本内容", + "type": "string" + }, + "created_at": { + "description": "State int32 ` + "`" + `json:\"state\" label:\"状态(1:正常 2:隐藏)\"` + "`" + `\nIsTopUp int32 ` + "`" + `json:\"is_top_up\" label:\"是否置顶(1:是 2:否)\"` + "`" + `\nIsPraise int32 ` + "`" + `json:\"is_praise\" label:\"是否被表扬(1:是 2:否)\"` + "`" + `", + "type": "string" + }, + "im_uid": { + "type": "integer" + }, + "image": { + "description": "图片", + "type": "string" + }, + "is_like": { + "description": "是否点赞", + "type": "boolean" + }, + "kind": { + "description": "类型(1:普通 2:官方)", + "type": "integer" + }, + "likes_nums": { + "description": "点赞数", + "type": "integer" + }, + "share_nums": { + "description": "分享数", + "type": "integer" + }, + "uid": { + "type": "integer" + }, + "updated_at": { + "type": "string" + }, + "video": { + "description": "视频", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleLikeReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleShareReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.MySelfListReq": { + "type": "object", + "properties": { + "page": { + "description": "页码", + "type": "integer" + }, + "page_size": { + "description": "每页数量", + "type": "integer" + } + } + }, + "friend_circles.MySelfListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/friend_circles.EggFriendCircleEsStruct" + } + }, + "page": { + "description": "页码", + "type": "integer" + }, + "page_size": { + "description": "每页数量", + "type": "integer" + }, + "total": { + "description": "总量", + "type": "integer" + } + } + }, + "friend_circles.PublishReq": { + "type": "object", + "properties": { + "content": { + "description": "文本内容", + "type": "string" + }, + "image_list": { + "description": "图片", + "type": "array", + "items": { + "type": "string" + } + }, + "video": { + "description": "视屏", + "type": "string" + } + } + }, "md.AdvertisingBasic": { "type": "object", "properties": { @@ -4030,6 +4930,10 @@ const docTemplate = `{ "description": "是否开始签到", "type": "boolean" }, + "leave_timer": { + "description": "可签到剩余时间 秒", + "type": "string" + }, "nick_name": { "description": "用户名称", "type": "string" @@ -4363,6 +5267,48 @@ const docTemplate = `{ } } }, + "md.PlayletBaseData": { + "type": "object", + "properties": { + "coin_name": { + "type": "string", + "example": "积分名称" + }, + "first_count": { + "type": "string", + "example": "首次可观看集数" + }, + "leave": { + "type": "string", + "example": "剩余次数" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "second_count": { + "type": "string", + "example": "看一次广告解锁集数" + }, + "sum": { + "type": "string", + "example": "奖励总数" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, + "md.PlayletRewardRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "广告id" + } + } + }, "md.PointsCenterGetBasicResp": { "type": "object", "properties": { @@ -4467,7 +5413,7 @@ const docTemplate = `{ "description": "红包详情信息", "allOf": [ { - "$ref": "#/definitions/model.ImSendRedPackageOrd" + "$ref": "#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd" } ] }, @@ -4989,6 +5935,48 @@ const docTemplate = `{ } } }, + "md.VideoBaseData": { + "type": "object", + "properties": { + "coin_name": { + "type": "string", + "example": "积分名称" + }, + "interval": { + "type": "string", + "example": "领取间隔 秒" + }, + "leave": { + "type": "string", + "example": "剩余次数" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "sum": { + "type": "string", + "example": "奖励总数" + }, + "timer": { + "type": "string", + "example": "观看X秒奖励" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, + "md.VideoRewardRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "广告id" + } + } + }, "md.WalletFlowNode": { "type": "object", "properties": { @@ -5092,68 +6080,6 @@ const docTemplate = `{ } } }, - "model.ImSendRedPackageOrd": { - "type": "object", - "properties": { - "amount": { - "type": "string" - }, - "create_time": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "im_data": { - "type": "string" - }, - "im_uid": { - "type": "integer" - }, - "ord_no": { - "type": "string" - }, - "received_im_user_ids": { - "type": "string" - }, - "received_times": { - "type": "string" - }, - "received_user_amount": { - "type": "string" - }, - "received_user_ids": { - "type": "string" - }, - "red_packet_balance_amount": { - "type": "string" - }, - "red_packet_balance_nums": { - "type": "integer" - }, - "red_packet_nums": { - "type": "integer" - }, - "red_packet_type": { - "type": "integer" - }, - "state": { - "type": "integer" - }, - "uid": { - "type": "integer" - }, - "update_time": { - "type": "string" - }, - "wait_draw_im_user_ids": { - "type": "string" - }, - "wait_draw_user_ids": { - "type": "string" - } - } - }, "pb.SendRedPacketResp": { "type": "object", "properties": { @@ -5176,8 +6102,6 @@ var SwaggerInfo = &swag.Spec{ Description: "APP客户端-Api接口", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", } func init() { diff --git a/docs/swagger.json b/docs/swagger.json index 76c9c97..186dfa2 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -495,6 +495,136 @@ } } }, + "/api/v1/circleFriends/CommentDelete/{$comment_index_id}": { + "delete": { + "description": "评论点赞", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-删除评论", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/CommentLike": { + "get": { + "description": "评论取消点赞", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-评论取消点赞", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "评论文档记录", + "name": "comment_index_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/cancelLike": { + "post": { + "description": "取消点赞朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-取消点赞朋友圈", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.EggFriendCircleCancelLikeReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/v1/circleFriends/comment": { "get": { "description": "是否可以评论", @@ -507,7 +637,361 @@ "tags": [ "朋友圈" ], - "summary": "朋友圈-评论", + "summary": "朋友圈-评论", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "许可链接", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/commentDetail": { + "get": { + "description": "评论详情", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-评论详情", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "评论文档记录", + "name": "comment_index_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/commentList": { + "post": { + "description": "评论列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-评论列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "朋友圈文档记录", + "name": "circle_index_id", + "in": "query", + "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.CommentListReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/delete": { + "delete": { + "description": "删除朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-删除朋友圈", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.EggFriendCircleDelReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/isCanComment": { + "get": { + "description": "是否可以评论", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-是否可以评论", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/isCanPublish": { + "get": { + "description": "是否可以发布朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-是否可以发布朋友圈", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/like": { + "post": { + "description": "点赞朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-点赞朋友圈", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.EggFriendCircleLikeReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/mySelfList": { + "post": { + "description": "我的朋友圈列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-我的朋友圈列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "签名上传url", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.MySelfListReq" + } + } + ], + "responses": { + "200": { + "description": "返回数据", + "schema": { + "$ref": "#/definitions/friend_circles.MySelfListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/circleFriends/public": { + "post": { + "description": "发布朋友圈", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "朋友圈" + ], + "summary": "朋友圈-发布朋友圈", "parameters": [ { "type": "string", @@ -515,11 +999,20 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.PublishReq" + } } ], "responses": { "200": { - "description": "许可链接", + "description": "success", "schema": { "type": "string" } @@ -533,9 +1026,9 @@ } } }, - "/api/v1/circleFriends/isCanComment": { - "get": { - "description": "是否可以评论", + "/api/v1/circleFriends/share": { + "post": { + "description": "分享后朋友圈分享数(增加)", "consumes": [ "application/json" ], @@ -545,7 +1038,7 @@ "tags": [ "朋友圈" ], - "summary": "朋友圈-是否可以评论", + "summary": "朋友圈-分享后朋友圈分享数(增加)", "parameters": [ { "type": "string", @@ -553,11 +1046,20 @@ "name": "Authorization", "in": "header", "required": true + }, + { + "description": "请求参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/friend_circles.EggFriendCircleShareReq" + } } ], "responses": { "200": { - "description": "许可链接", + "description": "success", "schema": { "type": "string" } @@ -1858,6 +2360,91 @@ } } }, + "/api/v1/playlet/base": { + "get": { + "description": "短视频-基本信息", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "短视频" + ], + "summary": "短视频-基本信息", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.PlayletBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/playlet/reward": { + "post": { + "description": "实名认证-保存", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "实名认证" + ], + "summary": "实名认证-保存", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.PlayletRewardRequest" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/v1/pointsCenter/basic": { "get": { "description": "上部分基础信息(获取)", @@ -2412,7 +2999,9 @@ "name": "req", "in": "body", "required": true, - "schema": {} + "schema": { + "type": "object" + } } ], "responses": { @@ -2734,6 +3323,91 @@ } } }, + "/api/v1/video/base": { + "get": { + "description": "短视频-基本信息", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "短视频" + ], + "summary": "短视频-基本信息", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.VideoBaseData" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/v1/video/reward": { + "post": { + "description": "实名认证-保存", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "实名认证" + ], + "summary": "实名认证-保存", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "参数", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.VideoRewardRequest" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/v1/wallet/amountFlow": { "get": { "description": "余额明细(获取)", @@ -3108,13 +3782,75 @@ "description": "每页大小", "type": "integer" }, - "page": { - "description": "页数", + "page": { + "description": "页数", + "type": "integer" + }, + "total": { + "description": "总数据量", + "type": "integer" + } + } + }, + "code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd": { + "type": "object", + "properties": { + "amount": { + "type": "string" + }, + "create_time": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "im_data": { + "type": "string" + }, + "im_uid": { + "type": "integer" + }, + "ord_no": { + "type": "string" + }, + "received_im_user_ids": { + "type": "string" + }, + "received_times": { + "type": "string" + }, + "received_user_amount": { + "type": "string" + }, + "received_user_ids": { + "type": "string" + }, + "red_packet_balance_amount": { + "type": "string" + }, + "red_packet_balance_nums": { + "type": "integer" + }, + "red_packet_nums": { "type": "integer" }, - "total": { - "description": "总数据量", + "red_packet_type": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "uid": { "type": "integer" + }, + "update_time": { + "type": "string" + }, + "wait_draw_im_user_ids": { + "type": "string" + }, + "wait_draw_user_ids": { + "type": "string" } } }, @@ -3144,6 +3880,169 @@ } } }, + "friend_circles.CommentListReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "朋友圈文档记录", + "type": "string" + }, + "page": { + "description": "页码", + "type": "integer" + }, + "page_size": { + "description": "每页数量", + "type": "integer" + } + } + }, + "friend_circles.EggFriendCircleCancelLikeReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleDelReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleEsStruct": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "朋友圈文档记录", + "type": "string" + }, + "comment_nums": { + "description": "评论数", + "type": "integer" + }, + "content": { + "description": "文本内容", + "type": "string" + }, + "created_at": { + "description": "State int32 `json:\"state\" label:\"状态(1:正常 2:隐藏)\"`\nIsTopUp int32 `json:\"is_top_up\" label:\"是否置顶(1:是 2:否)\"`\nIsPraise int32 `json:\"is_praise\" label:\"是否被表扬(1:是 2:否)\"`", + "type": "string" + }, + "im_uid": { + "type": "integer" + }, + "image": { + "description": "图片", + "type": "string" + }, + "is_like": { + "description": "是否点赞", + "type": "boolean" + }, + "kind": { + "description": "类型(1:普通 2:官方)", + "type": "integer" + }, + "likes_nums": { + "description": "点赞数", + "type": "integer" + }, + "share_nums": { + "description": "分享数", + "type": "integer" + }, + "uid": { + "type": "integer" + }, + "updated_at": { + "type": "string" + }, + "video": { + "description": "视频", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleLikeReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.EggFriendCircleShareReq": { + "type": "object", + "properties": { + "circle_index_id": { + "description": "文章索引", + "type": "string" + } + } + }, + "friend_circles.MySelfListReq": { + "type": "object", + "properties": { + "page": { + "description": "页码", + "type": "integer" + }, + "page_size": { + "description": "每页数量", + "type": "integer" + } + } + }, + "friend_circles.MySelfListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/friend_circles.EggFriendCircleEsStruct" + } + }, + "page": { + "description": "页码", + "type": "integer" + }, + "page_size": { + "description": "每页数量", + "type": "integer" + }, + "total": { + "description": "总量", + "type": "integer" + } + } + }, + "friend_circles.PublishReq": { + "type": "object", + "properties": { + "content": { + "description": "文本内容", + "type": "string" + }, + "image_list": { + "description": "图片", + "type": "array", + "items": { + "type": "string" + } + }, + "video": { + "description": "视屏", + "type": "string" + } + } + }, "md.AdvertisingBasic": { "type": "object", "properties": { @@ -4024,6 +4923,10 @@ "description": "是否开始签到", "type": "boolean" }, + "leave_timer": { + "description": "可签到剩余时间 秒", + "type": "string" + }, "nick_name": { "description": "用户名称", "type": "string" @@ -4357,6 +5260,48 @@ } } }, + "md.PlayletBaseData": { + "type": "object", + "properties": { + "coin_name": { + "type": "string", + "example": "积分名称" + }, + "first_count": { + "type": "string", + "example": "首次可观看集数" + }, + "leave": { + "type": "string", + "example": "剩余次数" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "second_count": { + "type": "string", + "example": "看一次广告解锁集数" + }, + "sum": { + "type": "string", + "example": "奖励总数" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, + "md.PlayletRewardRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "广告id" + } + } + }, "md.PointsCenterGetBasicResp": { "type": "object", "properties": { @@ -4461,7 +5406,7 @@ "description": "红包详情信息", "allOf": [ { - "$ref": "#/definitions/model.ImSendRedPackageOrd" + "$ref": "#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd" } ] }, @@ -4983,6 +5928,48 @@ } } }, + "md.VideoBaseData": { + "type": "object", + "properties": { + "coin_name": { + "type": "string", + "example": "积分名称" + }, + "interval": { + "type": "string", + "example": "领取间隔 秒" + }, + "leave": { + "type": "string", + "example": "剩余次数" + }, + "reward": { + "type": "string", + "example": "单次奖励" + }, + "sum": { + "type": "string", + "example": "奖励总数" + }, + "timer": { + "type": "string", + "example": "观看X秒奖励" + }, + "total": { + "type": "string", + "example": "可领取总次数" + } + } + }, + "md.VideoRewardRequest": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "广告id" + } + } + }, "md.WalletFlowNode": { "type": "object", "properties": { @@ -5086,68 +6073,6 @@ } } }, - "model.ImSendRedPackageOrd": { - "type": "object", - "properties": { - "amount": { - "type": "string" - }, - "create_time": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "im_data": { - "type": "string" - }, - "im_uid": { - "type": "integer" - }, - "ord_no": { - "type": "string" - }, - "received_im_user_ids": { - "type": "string" - }, - "received_times": { - "type": "string" - }, - "received_user_amount": { - "type": "string" - }, - "received_user_ids": { - "type": "string" - }, - "red_packet_balance_amount": { - "type": "string" - }, - "red_packet_balance_nums": { - "type": "integer" - }, - "red_packet_nums": { - "type": "integer" - }, - "red_packet_type": { - "type": "integer" - }, - "state": { - "type": "integer" - }, - "uid": { - "type": "integer" - }, - "update_time": { - "type": "string" - }, - "wait_draw_im_user_ids": { - "type": "string" - }, - "wait_draw_user_ids": { - "type": "string" - } - } - }, "pb.SendRedPacketResp": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index e1ba469..f27bda2 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -12,6 +12,47 @@ definitions: description: 总数据量 type: integer type: object + code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd: + properties: + amount: + type: string + create_time: + type: string + id: + type: integer + im_data: + type: string + im_uid: + type: integer + ord_no: + type: string + received_im_user_ids: + type: string + received_times: + type: string + received_user_amount: + type: string + received_user_ids: + type: string + red_packet_balance_amount: + type: string + red_packet_balance_nums: + type: integer + red_packet_nums: + type: integer + red_packet_type: + type: integer + state: + type: integer + uid: + type: integer + update_time: + type: string + wait_draw_im_user_ids: + type: string + wait_draw_user_ids: + type: string + type: object comm.AccessRecordsReq: properties: index: @@ -30,6 +71,123 @@ definitions: - content_type - file_name type: object + friend_circles.CommentListReq: + properties: + circle_index_id: + description: 朋友圈文档记录 + type: string + page: + description: 页码 + type: integer + page_size: + description: 每页数量 + type: integer + type: object + friend_circles.EggFriendCircleCancelLikeReq: + properties: + circle_index_id: + description: 文章索引 + type: string + type: object + friend_circles.EggFriendCircleDelReq: + properties: + circle_index_id: + description: 文章索引 + type: string + type: object + friend_circles.EggFriendCircleEsStruct: + properties: + circle_index_id: + description: 朋友圈文档记录 + type: string + comment_nums: + description: 评论数 + type: integer + content: + description: 文本内容 + type: string + created_at: + description: |- + State int32 `json:"state" label:"状态(1:正常 2:隐藏)"` + IsTopUp int32 `json:"is_top_up" label:"是否置顶(1:是 2:否)"` + IsPraise int32 `json:"is_praise" label:"是否被表扬(1:是 2:否)"` + type: string + im_uid: + type: integer + image: + description: 图片 + type: string + is_like: + description: 是否点赞 + type: boolean + kind: + description: 类型(1:普通 2:官方) + type: integer + likes_nums: + description: 点赞数 + type: integer + share_nums: + description: 分享数 + type: integer + uid: + type: integer + updated_at: + type: string + video: + description: 视频 + type: string + type: object + friend_circles.EggFriendCircleLikeReq: + properties: + circle_index_id: + description: 文章索引 + type: string + type: object + friend_circles.EggFriendCircleShareReq: + properties: + circle_index_id: + description: 文章索引 + type: string + type: object + friend_circles.MySelfListReq: + properties: + page: + description: 页码 + type: integer + page_size: + description: 每页数量 + type: integer + type: object + friend_circles.MySelfListResp: + properties: + list: + items: + $ref: '#/definitions/friend_circles.EggFriendCircleEsStruct' + type: array + page: + description: 页码 + type: integer + page_size: + description: 每页数量 + type: integer + total: + description: 总量 + type: integer + type: object + friend_circles.PublishReq: + properties: + content: + description: 文本内容 + type: string + image_list: + description: 图片 + items: + type: string + type: array + video: + description: 视屏 + type: string + type: object md.AdvertisingBasic: properties: android_ad_is_open: @@ -639,6 +797,9 @@ definitions: is_sign: description: 是否开始签到 type: boolean + leave_timer: + description: 可签到剩余时间 秒 + type: string nick_name: description: 用户名称 type: string @@ -872,6 +1033,36 @@ definitions: nickname: type: string type: object + md.PlayletBaseData: + properties: + coin_name: + example: 积分名称 + type: string + first_count: + example: 首次可观看集数 + type: string + leave: + example: 剩余次数 + type: string + reward: + example: 单次奖励 + type: string + second_count: + example: 看一次广告解锁集数 + type: string + sum: + example: 奖励总数 + type: string + total: + example: 可领取总次数 + type: string + type: object + md.PlayletRewardRequest: + properties: + id: + example: 广告id + type: string + type: object md.PointsCenterGetBasicResp: properties: egg_point: @@ -943,7 +1134,7 @@ definitions: properties: detail: allOf: - - $ref: '#/definitions/model.ImSendRedPackageOrd' + - $ref: '#/definitions/code_fnuoos_com_EggPlanet_egg_models_git_src_model.ImSendRedPackageOrd' description: 红包详情信息 list: description: 领取红包用户列表 @@ -1299,6 +1490,36 @@ definitions: $ref: '#/definitions/md.Version' type: array type: object + md.VideoBaseData: + properties: + coin_name: + example: 积分名称 + type: string + interval: + example: 领取间隔 秒 + type: string + leave: + example: 剩余次数 + type: string + reward: + example: 单次奖励 + type: string + sum: + example: 奖励总数 + type: string + timer: + example: 观看X秒奖励 + type: string + total: + example: 可领取总次数 + type: string + type: object + md.VideoRewardRequest: + properties: + id: + example: 广告id + type: string + type: object md.WalletFlowNode: properties: after_amount: @@ -1373,47 +1594,6 @@ definitions: description: 余额 type: string type: object - model.ImSendRedPackageOrd: - properties: - amount: - type: string - create_time: - type: string - id: - type: integer - im_data: - type: string - im_uid: - type: integer - ord_no: - type: string - received_im_user_ids: - type: string - received_times: - type: string - received_user_amount: - type: string - received_user_ids: - type: string - red_packet_balance_amount: - type: string - red_packet_balance_nums: - type: integer - red_packet_nums: - type: integer - red_packet_type: - type: integer - state: - type: integer - uid: - type: integer - update_time: - type: string - wait_draw_im_user_ids: - type: string - wait_draw_user_ids: - type: string - type: object pb.SendRedPacketResp: properties: seq: @@ -1749,11 +1929,11 @@ paths: summary: 广告状态 看完之后拿到广告唯一值 tags: - 广告位 - /api/v1/circleFriends/comment: - get: + /api/v1/circleFriends/CommentDelete/{$comment_index_id}: + delete: consumes: - application/json - description: 是否可以评论 + description: 评论点赞 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -1764,176 +1944,508 @@ paths: - application/json responses: "200": - description: 许可链接 + description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 朋友圈-评论 + summary: 朋友圈-删除评论 tags: - 朋友圈 - /api/v1/circleFriends/isCanComment: + /api/v1/circleFriends/CommentLike: get: consumes: - application/json - description: 是否可以评论 + description: 评论取消点赞 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string + - description: 评论文档记录 + in: query + name: comment_index_id + required: true + type: string produces: - application/json responses: "200": - description: 许可链接 + description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 朋友圈-是否可以评论 + summary: 朋友圈-评论取消点赞 tags: - 朋友圈 - /api/v1/college/cate: - get: + /api/v1/circleFriends/cancelLike: + post: consumes: - application/json - description: 蛋蛋学院-分类 + description: 取消点赞朋友圈 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string + - description: 请求参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/friend_circles.EggFriendCircleCancelLikeReq' produces: - application/json responses: "200": - description: 具体数据 + description: success schema: - $ref: '#/definitions/md.AdvertisingResp' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 蛋蛋学院-分类 + summary: 朋友圈-取消点赞朋友圈 tags: - - 蛋蛋学院 - /api/v1/college/detail: - post: + - 朋友圈 + /api/v1/circleFriends/comment: + get: consumes: - application/json - description: 蛋蛋学院-文章详情 + description: 是否可以评论 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 参数 - in: body - name: req - required: true - schema: - $ref: '#/definitions/md.CollegeDetailReq' produces: - application/json responses: "200": - description: 具体数据 + description: 许可链接 schema: - $ref: '#/definitions/md.CollegeDetailResp' + type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 蛋蛋学院-文章详情 + summary: 朋友圈-评论 tags: - - 蛋蛋学院 - /api/v1/college/like/add: - post: + - 朋友圈 + /api/v1/circleFriends/commentDetail: + get: consumes: - application/json - description: 蛋蛋学院-文章-点赞 + description: 评论详情 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 参数 - in: body - name: req + - description: 评论文档记录 + in: query + name: comment_index_id required: true - schema: - $ref: '#/definitions/md.CollegeDetailReq' + type: string produces: - application/json responses: "200": - description: 具体数据 + description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 蛋蛋学院-文章-点赞 + summary: 朋友圈-评论详情 tags: - - 蛋蛋学院 - /api/v1/college/like/cancel: + - 朋友圈 + /api/v1/circleFriends/commentList: post: consumes: - application/json - description: 蛋蛋学院-文章-取消点赞 + description: 评论列表 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 参数 + - description: 朋友圈文档记录 + in: query + name: circle_index_id + required: true + type: string + - description: 请求参数 in: body name: req required: true schema: - $ref: '#/definitions/md.CollegeDetailReq' + $ref: '#/definitions/friend_circles.CommentListReq' produces: - application/json responses: "200": - description: 具体数据 + description: success schema: type: string "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 蛋蛋学院-文章-取消点赞 + summary: 朋友圈-评论列表 tags: - - 蛋蛋学院 - /api/v1/college/list: - post: + - 朋友圈 + /api/v1/circleFriends/delete: + delete: consumes: - application/json - description: 蛋蛋学院-文章列表 + description: 删除朋友圈 parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 参数 + - description: 请求参数 in: body name: req required: true schema: - $ref: '#/definitions/md.CollegeListReq' + $ref: '#/definitions/friend_circles.EggFriendCircleDelReq' + produces: + - application/json + responses: + "200": + description: success + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-删除朋友圈 + tags: + - 朋友圈 + /api/v1/circleFriends/isCanComment: + get: + consumes: + - application/json + description: 是否可以评论 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: success + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-是否可以评论 + tags: + - 朋友圈 + /api/v1/circleFriends/isCanPublish: + get: + consumes: + - application/json + description: 是否可以发布朋友圈 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: success + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-是否可以发布朋友圈 + tags: + - 朋友圈 + /api/v1/circleFriends/like: + post: + consumes: + - application/json + description: 点赞朋友圈 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 请求参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/friend_circles.EggFriendCircleLikeReq' + produces: + - application/json + responses: + "200": + description: success + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-点赞朋友圈 + tags: + - 朋友圈 + /api/v1/circleFriends/mySelfList: + post: + consumes: + - application/json + description: 我的朋友圈列表 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 签名上传url + in: body + name: req + required: true + schema: + $ref: '#/definitions/friend_circles.MySelfListReq' + produces: + - application/json + responses: + "200": + description: 返回数据 + schema: + $ref: '#/definitions/friend_circles.MySelfListResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-我的朋友圈列表 + tags: + - 朋友圈 + /api/v1/circleFriends/public: + post: + consumes: + - application/json + description: 发布朋友圈 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 请求参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/friend_circles.PublishReq' + produces: + - application/json + responses: + "200": + description: success + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-发布朋友圈 + tags: + - 朋友圈 + /api/v1/circleFriends/share: + post: + consumes: + - application/json + description: 分享后朋友圈分享数(增加) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 请求参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/friend_circles.EggFriendCircleShareReq' + produces: + - application/json + responses: + "200": + description: success + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 朋友圈-分享后朋友圈分享数(增加) + tags: + - 朋友圈 + /api/v1/college/cate: + get: + consumes: + - application/json + description: 蛋蛋学院-分类 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.AdvertisingResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 蛋蛋学院-分类 + tags: + - 蛋蛋学院 + /api/v1/college/detail: + post: + consumes: + - application/json + description: 蛋蛋学院-文章详情 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.CollegeDetailReq' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.CollegeDetailResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 蛋蛋学院-文章详情 + tags: + - 蛋蛋学院 + /api/v1/college/like/add: + post: + consumes: + - application/json + description: 蛋蛋学院-文章-点赞 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.CollegeDetailReq' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 蛋蛋学院-文章-点赞 + tags: + - 蛋蛋学院 + /api/v1/college/like/cancel: + post: + consumes: + - application/json + description: 蛋蛋学院-文章-取消点赞 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.CollegeDetailReq' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 蛋蛋学院-文章-取消点赞 + tags: + - 蛋蛋学院 + /api/v1/college/list: + post: + consumes: + - application/json + description: 蛋蛋学院-文章列表 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.CollegeListReq' produces: - application/json responses: @@ -2646,6 +3158,62 @@ paths: summary: 打开app调用 tags: - 基本配置 + /api/v1/playlet/base: + get: + consumes: + - application/json + description: 短视频-基本信息 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.PlayletBaseData' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 短视频-基本信息 + tags: + - 短视频 + /api/v1/playlet/reward: + post: + consumes: + - application/json + description: 实名认证-保存 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.PlayletRewardRequest' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 实名认证-保存 + tags: + - 实名认证 /api/v1/pointsCenter/basic: get: consumes: @@ -3010,7 +3578,8 @@ paths: in: body name: req required: true - schema: {} + schema: + type: object produces: - application/json responses: @@ -3225,6 +3794,62 @@ paths: summary: 版本记录 tags: - 基本配置 + /api/v1/video/base: + get: + consumes: + - application/json + description: 短视频-基本信息 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.VideoBaseData' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 短视频-基本信息 + tags: + - 短视频 + /api/v1/video/reward: + post: + consumes: + - application/json + description: 实名认证-保存 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 参数 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.VideoRewardRequest' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 实名认证-保存 + tags: + - 实名认证 /api/v1/wallet/amountFlow: get: consumes: diff --git a/go.mod b/go.mod index ee8eee0..0613ac1 100644 --- a/go.mod +++ b/go.mod @@ -32,8 +32,8 @@ require ( ) require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241204095350-c895baf67bc5 - code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241204100652-09a6749b5f44 + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241204145112-7b4c29691a6d + code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241205020101-e9fa2d461875 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible