Skip to content

Commit 976c82b

Browse files
xrgzsj2rong4cn
authored andcommitted
fix(drivers): update time-related fields to int64 (#913)
- In doubao/types.go: - Change LastUpdateTime from int to int64 - Change UserCreateTime from int to int64 - In doubao_share/types.go: - Change CreateTime and UpdateTime from int to int64 in ShareInfo and FilePath - In quark_uc/types.go: - Change UpdateTime from int to int64 in TranscodingResp These changes ensure consistent and accurate representation of timestamp data across the project.
1 parent 5b41a3b commit 976c82b

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

drivers/doubao/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ type BuiAuditInfo struct {
129129
AuditInfo AuditInfo `json:"audit_info"`
130130
IsAuditing bool `json:"is_auditing"`
131131
AuditStatus int `json:"audit_status"`
132-
LastUpdateTime int `json:"last_update_time"`
132+
LastUpdateTime int64 `json:"last_update_time"`
133133
UnpassReason string `json:"unpass_reason"`
134134
Details Details `json:"details"`
135135
}
@@ -184,7 +184,7 @@ type UserInfo struct {
184184
SecUserID string `json:"sec_user_id"`
185185
SessionKey string `json:"session_key"`
186186
UseHmRegion bool `json:"use_hm_region"`
187-
UserCreateTime int `json:"user_create_time"`
187+
UserCreateTime int64 `json:"user_create_time"`
188188
UserID int64 `json:"user_id"`
189189
UserIDStr string `json:"user_id_str"`
190190
UserVerified bool `json:"user_verified"`

drivers/doubao_share/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ type ShareInfo struct {
7979
RiskReviewStatus int `json:"risk_review_status"`
8080
ConversationID string `json:"conversation_id"`
8181
ParentID string `json:"parent_id"`
82-
CreateTime int `json:"create_time"`
83-
UpdateTime int `json:"update_time"`
82+
CreateTime int64 `json:"create_time"`
83+
UpdateTime int64 `json:"update_time"`
8484
} `json:"first_node"`
8585
NodeCount int `json:"node_count"`
86-
CreateTime int `json:"create_time"`
86+
CreateTime int64 `json:"create_time"`
8787
Channel string `json:"channel"`
8888
InfluencerType int `json:"influencer_type"`
8989
}
@@ -111,8 +111,8 @@ type FilePath []struct {
111111
RiskReviewStatus int `json:"risk_review_status"`
112112
ConversationID string `json:"conversation_id"`
113113
ParentID string `json:"parent_id"`
114-
CreateTime int `json:"create_time"`
115-
UpdateTime int `json:"update_time"`
114+
CreateTime int64 `json:"create_time"`
115+
UpdateTime int64 `json:"update_time"`
116116
}
117117

118118
type GetFileUrlResp struct {

drivers/quark_uc/types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package quark
22

33
import (
4-
"github.com/OpenListTeam/OpenList/v4/pkg/utils"
54
"time"
65

6+
"github.com/OpenListTeam/OpenList/v4/pkg/utils"
7+
78
"github.com/OpenListTeam/OpenList/v4/internal/model"
89
)
910

@@ -159,7 +160,7 @@ type TranscodingResp struct {
159160
Codec string `json:"codec"`
160161
Channels int `json:"channels"`
161162
} `json:"audio"`
162-
UpdateTime int `json:"update_time"`
163+
UpdateTime int64 `json:"update_time"`
163164
URL string `json:"url"`
164165
Resolution string `json:"resolution"`
165166
HlsType string `json:"hls_type"`

0 commit comments

Comments
 (0)