Explorar el Código

update

master
dengbiao hace 1 mes
padre
commit
5f89795bd6
Se han modificado 3 ficheros con 32 adiciones y 1 borrados
  1. +6
    -1
      app/hdl/advertising/hdl_function.go
  2. +25
    -0
      app/hdl/im/hdl_group.go
  3. +1
    -0
      app/router/router.go

+ 6
- 1
app/hdl/advertising/hdl_function.go Ver fichero

@@ -1,7 +1,10 @@
package advertising

import (
"applet/app/md"
"applet/app/svc/advertising"
"applet/app/utils"
"fmt"
"github.com/gin-gonic/gin"
)

@@ -13,10 +16,12 @@ import (
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.AdvertisingFunctionListReq true "(分页信息必填)"
// @Success 200 {object} md.AdvertisingFunctionResp "具体数据"
// @Success 200 {object} md.AdvertisingFunctionListResp "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/advertising/function/list [post]
func FunctionList(c *gin.Context) {
var resp = md.AdvertisingFunctionListResp{}
fmt.Println(utils.SerializeStr(resp))
advertising.FunctionList(c)
}



+ 25
- 0
app/hdl/im/hdl_group.go Ver fichero

@@ -31,3 +31,28 @@ func GroupList(c *gin.Context) {
}
e.OutSuc(c, resp, nil)
}

// GroupUserList
// @Summary Im-群组用户(列表)
// @Tags 群组用户
// @Description 群组用户(列表)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @param req body md.GroupListReq true "相关参数"
// @Success 200 {object} md.GroupListResp ""
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/im/groupList [POST]
func GroupUserList(c *gin.Context) {
var req *md.GroupUserListReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
return
}
err, resp := svc.GroupUserList(*req)
if err != nil {
e.OutErr(c, e.ERR, err.Error())
return
}
e.OutSuc(c, resp, nil)
}

+ 1
- 0
app/router/router.go Ver fichero

@@ -285,6 +285,7 @@ func rIm(r *gin.RouterGroup) {
r.GET("/redPackageRecordsDetail", im.RedPackageRecordsDetail)
r.POST("/pageSendRedPackageOrd", im.PageSendRedPackageOrd)
r.POST("/groupList", im.GroupList)
r.POST("/groupUserList", im.GroupUserList)
r.POST("/batchSendGroupMessage", im.BatchSendGroupMessage)
r.POST("/batchSendUserMessage", im.BatchSendUserMessage)
}


Cargando…
Cancelar
Guardar