1
This commit is contained in:
parent
ff00cf68a6
commit
4fee31de1f
@ -50,5 +50,16 @@ func mail_getAttachment(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func mail_deleteMails(c *gin.Context) {
|
func mail_deleteMails(c *gin.Context) {
|
||||||
|
hum := c.MustGet("player").(common.Player)
|
||||||
|
var msg struct {
|
||||||
|
ErrCode int32 `json:"errcode"`
|
||||||
|
ErrMsg string `json:"errmsg"`
|
||||||
|
}
|
||||||
|
mailIdsStr := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",")
|
||||||
|
mailIds := []int64{}
|
||||||
|
for i := 0; i < len(mailIdsStr); i++ {
|
||||||
|
*q5.NewSliceElement(&mailIds) = q5.ToInt64(mailIdsStr[i])
|
||||||
|
}
|
||||||
|
hum.DeleteMails(mailIds)
|
||||||
|
c.JSON(http.StatusOK, msg)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user