aa
This commit is contained in:
@@ -59,16 +59,16 @@ func (*MessageStatus) TableIndex() [][]string {
|
||||
type ImMessageRecord struct {
|
||||
ModelIDCULD
|
||||
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"` //发消息的userID
|
||||
GroupID int `orm:"column(group_id)" json:"groupID"` //组ID
|
||||
Content string `orm:"type(text)" json:"content"` //消息内容
|
||||
MessageType int `json:"messageType"` //消息类型,1文字,2图片,3音频
|
||||
Seq int `json:"seq"`
|
||||
Weight int `json:"weight"`
|
||||
Height int `json:"height"`
|
||||
// Audio []byte `json:"audio"`
|
||||
Key string `orm:"-" json:"key"`
|
||||
UserInfo *GetUserResult `orm:"-" json:"userInfo"`
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"` //发消息的userID
|
||||
GroupID int `orm:"column(group_id)" json:"groupID"` //组ID
|
||||
Content string `orm:"type(text)" json:"content"` //消息内容
|
||||
MessageType int `json:"messageType"` //消息类型,1文字,2图片,3音频
|
||||
Seq int `json:"seq"`
|
||||
Weight int `json:"weight"`
|
||||
Height int `json:"height"`
|
||||
AudioLength int `json:"audioLength"`
|
||||
Key string `orm:"-" json:"key"`
|
||||
UserInfo *GetUserResult `orm:"-" json:"userInfo"`
|
||||
}
|
||||
|
||||
func (*ImMessageRecord) TableIndex() [][]string {
|
||||
|
||||
@@ -407,6 +407,6 @@ func (c *EventController) UploadAudio() {
|
||||
}
|
||||
defer f.Close()
|
||||
io.Copy(f, file)
|
||||
return "https://www.jxcs.net/audio/" + fileName, "", err
|
||||
return "https://www.jxcs.net/audio/" + timeStr + "/" + fileName, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user