Compare commits
No commits in common. "f30b750cf8dda3da3a02ad353f11a743313521ca" and "f46b1915c7db1298a75ab4baf08b4a081fd6e6b1" have entirely different histories.
f30b750cf8
...
f46b1915c7
|
|
@ -89,7 +89,7 @@ func GetMessage(c *gin.Context) {
|
||||||
//解析参数
|
//解析参数
|
||||||
if err := c.ShouldBind(&req); err == nil {
|
if err := c.ShouldBind(&req); err == nil {
|
||||||
fmt.Println(req)
|
fmt.Println(req)
|
||||||
msgs, err2 := service.GetMsgUserByIndexService(req.From_user_id, id, req.Index, req.Type, req.From_user_id)
|
msgs, err2 := service.GetMsgUserByIndexService(req.To_user_id, id, req.Index, req.Type, req.From_user_id)
|
||||||
if err2 == nil {
|
if err2 == nil {
|
||||||
c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "data": msgs, "message": "success"})
|
c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "data": msgs, "message": "success"})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue