From 8c7ccf7e9fcce14b7b88ef8e83117e10ad89be6e Mon Sep 17 00:00:00 2001 From: genofire Date: Sun, 12 Mar 2023 20:59:51 +0100 Subject: [PATCH] fix(helper): use int64 for date -> easier use with golang time.Unix --- helper/policy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helper/policy.go b/helper/policy.go index 5bf18bd..4db1812 100644 --- a/helper/policy.go +++ b/helper/policy.go @@ -9,9 +9,9 @@ import ( ) type Policy struct { - URLExpire int `json:"url_expire"` - URLActivate int `json:"url_activate,omitempty"` - StreamExpire int `json:"stream_expire,omitempty"` + URLExpire int64 `json:"url_expire"` + URLActivate int64 `json:"url_activate,omitempty"` + StreamExpire int64 `json:"stream_expire,omitempty"` AllowIP string `json:"allow_ip,omitempty"` }