service/api/proto/notification/proto/notification_api.go

53 lines
917 B
Go

package proto
import (
"service/api/base"
"service/dbstruct"
)
// op 列表
type ApiListUnreadByMidReq struct {
base.BaseRequest
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type ApiListUnreadByMidData struct {
List []*dbstruct.Notification `json:"list"`
Offset int `json:"offset"`
More int `json:"more"`
}
type ApiListUnreadByMidResp struct {
base.BaseResponse
Data *ApiListUnreadByMidData `json:"data"`
}
// op 列表
type ApiCountUnreadByMidReq struct {
base.BaseRequest
}
type ApiCountUnreadByMidData struct {
UnreadCount int64 `json:"unread_count"`
}
type ApiCountUnreadByMidResp struct {
base.BaseResponse
Data *ApiCountUnreadByMidData `json:"data"`
}
// op 更新
type ApiReadReq struct {
base.BaseRequest
Ids []int64
}
type ApiReadData struct {
}
type ApiReadResp struct {
base.BaseResponse
Data *ApiReadData `json:"data"`
}