Browse Source

Merge branch 'master' of https://code.fnuoos.com/EggPlanet/egg_app

adv_callback
dengbiao 1 month ago
parent
commit
08cdea9e94
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      app/hdl/friend_circle/hdl_friend_circle.go

+ 8
- 6
app/hdl/friend_circle/hdl_friend_circle.go View File

@@ -15,16 +15,16 @@ import (
) )


// MySelfList // MySelfList
// @Summary 通用请求-对象存储-上传许可链接(获取)
// @Tags 对象存储
// @Description 上传许可链接(获取)
// @Summary 朋友圈-我的朋友圈列表
// @Tags 朋友圈
// @Description 我的朋友圈列表
// @Accept json // @Accept json
// @Produce json // @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接" // @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body friend_circles.MySelfListReq true "签名上传url" // @Param req body friend_circles.MySelfListReq true "签名上传url"
// @Success 200 {object} friend_circles.MySelfListResp "返回数据" // @Success 200 {object} friend_circles.MySelfListResp "返回数据"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/v1/comm/getOssUrl [POST]
// @Router /api/v1/circleFriends/mySelfList [POST]
func MySelfList(c *gin.Context) { func MySelfList(c *gin.Context) {
var args friend_circles.MySelfListReq var args friend_circles.MySelfListReq
err := c.ShouldBindJSON(&args) err := c.ShouldBindJSON(&args)
@@ -100,8 +100,9 @@ func Publish(c *gin.Context) {
LikesNums: 0, LikesNums: 0,
ShareNums: 0, ShareNums: 0,
CommentNums: 0, CommentNums: 0,
State: 0,
IsTopUp: 0,
State: 1,
IsTopUp: 2,
IsPraise: 2,
CreatedAt: now.Format("2006-01-02 15:04:05"), CreatedAt: now.Format("2006-01-02 15:04:05"),
UpdatedAt: now.Format("2006-01-02 15:04:05"), UpdatedAt: now.Format("2006-01-02 15:04:05"),
}) })
@@ -185,6 +186,7 @@ func CommentDetail(c *gin.Context) {
} }


func Delete(c *gin.Context) { func Delete(c *gin.Context) {

e.OutSuc(c, "success", nil) e.OutSuc(c, "success", nil)
} }
func Share(c *gin.Context) { func Share(c *gin.Context) {


Loading…
Cancel
Save