mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-06 18:15:59 +08:00
solve error
This commit is contained in:
@@ -28,7 +28,7 @@ func (o *Auth) client() (auth.AuthClient, error) {
|
||||
}
|
||||
|
||||
func (o *Auth) UserRegister(c *gin.Context) {
|
||||
a2r.Call(auth.AuthClient.UserRegister, o.client, c)
|
||||
//a2r.Call(auth.AuthClient.UserRegister, o.client, c) // todo
|
||||
}
|
||||
|
||||
func (o *Auth) UserToken(c *gin.Context) {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
package manage
|
||||
|
||||
import (
|
||||
"OpenIM/internal/apiresp"
|
||||
api "OpenIM/pkg/apistruct"
|
||||
"OpenIM/pkg/common/config"
|
||||
"OpenIM/pkg/common/constant"
|
||||
@@ -16,6 +17,7 @@ import (
|
||||
sdkws "OpenIM/pkg/proto/sdkws"
|
||||
"OpenIM/pkg/utils"
|
||||
"context"
|
||||
"errors"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -122,6 +124,10 @@ func init() {
|
||||
// @Failure 400 {object} api.ManagementSendMsgResp "errCode为400 一般为参数输入错误, token未带上等"
|
||||
// @Router /msg/manage_send_msg [post]
|
||||
func ManagementSendMsg(c *gin.Context) {
|
||||
|
||||
apiresp.GinError(c, errors.New("todo"))
|
||||
apiresp.GinSuccess(c, nil)
|
||||
|
||||
var data interface{}
|
||||
params := api.ManagementSendMsgReq{}
|
||||
if err := c.BindJSON(¶ms); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user