|
- package im
-
- import (
- "applet/app/e"
- md "applet/app/md/im"
- svc "applet/app/svc/im"
- "github.com/gin-gonic/gin"
- )
-
-
-
-
-
-
-
-
-
-
-
-
- func GroupList(c *gin.Context) {
- var req *md.GroupListReq
- if err1 := c.ShouldBindJSON(&req); err1 != nil {
- e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
- return
- }
- err, resp := svc.GroupList(*req)
- if err != nil {
- e.OutErr(c, e.ERR, err.Error())
- return
- }
- e.OutSuc(c, resp, nil)
- }
-
-
-
-
-
-
-
-
-
-
-
-
- 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)
- }
|