solve error

This commit is contained in:
withchao
2023-03-03 18:59:28 +08:00
parent ebd1de919d
commit b74e6b52f3
11 changed files with 100 additions and 20 deletions
+1 -1
View File
@@ -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) {
+6
View File
@@ -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(&params); err != nil {