user update

test-errcode
Gordon 2 years ago
parent b24960449d
commit aa09e77ab6

@ -163,7 +163,7 @@ func RequiredIf(fl validator.FieldLevel) bool {
default:
return true
}
return false
return true
}
func (m *Message) SendMessage(c *gin.Context) {
params := apistruct.ManagementSendMsgReq{}

@ -48,8 +48,8 @@ type ManagementSendMsg struct {
type ManagementSendMsgReq struct {
SendID string `json:"sendID" binding:"required"`
RecvID string `json:"recvID" binding:"required_if=sessionType 1|required_if=sessionType 4"`
GroupID string `json:"groupID" binding:"required_if=sessionType 2|required_if=sessionType 3"`
RecvID string `json:"recvID" binding:"required_if"`
GroupID string `json:"groupID" binding:"required_if"`
SenderNickname string `json:"senderNickname" `
SenderFaceURL string `json:"senderFaceURL" `
SenderPlatformID int32 `json:"senderPlatformID"`

Loading…
Cancel
Save