diff --git a/types.go b/types.go index e9ca42f..9ef7059 100644 --- a/types.go +++ b/types.go @@ -154,6 +154,7 @@ type MailLog struct { GormModel UserID int `json:"user_id"` AccountID uint `json:"account_id"` + QuotaID *uint `json:"quota_id"` ChannelID *uint `json:"channel_id"` SenderAccountID *uint `json:"sender_account_id"` SignatureID *uint `json:"signature_id"` @@ -220,8 +221,11 @@ type CreateQuotaReq struct { } type UpdateQuotaReq struct { - Total *int `json:"total,omitempty"` - Status *int8 `json:"status,omitempty"` + Total *int `json:"total,omitempty"` + Status *int8 `json:"status,omitempty"` + ExpireAt *string `json:"expire_at,omitempty"` + CycleUnit *string `json:"cycle_unit,omitempty"` + CycleResetAt *string `json:"cycle_reset_at,omitempty"` } type QuotaListQuery struct { @@ -452,12 +456,12 @@ type CheckLog struct { ID uint `json:"id"` SenderAccountID uint `json:"sender_account_id"` VerificationCode string `json:"verification_code"` - SentAt string `json:"sent_at"` + SentAt time.Time `json:"sent_at"` Received bool `json:"received"` - ReceivedAt *string `json:"received_at"` + ReceivedAt *time.Time `json:"received_at"` LatencyMs int `json:"latency_ms"` ErrorMessage string `json:"error_message"` - CreatedAt string `json:"created_at"` + CreatedAt time.Time `json:"created_at"` } type CheckLogQuery struct {