more changes
This commit is contained in:
@ -5,6 +5,10 @@ type FanslyBaseResponse[T any] struct {
|
||||
Response T `json:"response"` // The response data, type of T
|
||||
}
|
||||
|
||||
type FanslyAccountResponse struct {
|
||||
Account FanslyAccount `json:"account"`
|
||||
}
|
||||
|
||||
type FanslyFollowResponse struct {
|
||||
Followers []struct {
|
||||
FollowerID string `json:"followerId"` // The ID of the follower
|
||||
@ -50,4 +54,23 @@ type Subscription struct {
|
||||
PromoStatus any `json:"promoStatus"`
|
||||
PromoStartsAt any `json:"promoStartsAt"`
|
||||
PromoEndsAt any `json:"promoEndsAt"`
|
||||
}
|
||||
}
|
||||
|
||||
type FanslyAccount struct {
|
||||
ID string `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Username string `json:"username"`
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
Flags int `json:"flags"`
|
||||
Version int `json:"version"`
|
||||
CreatedAt int64 `json:"createdAt"`
|
||||
FollowCount int `json:"followCount"`
|
||||
SubscriberCount int `json:"subscriberCount"`
|
||||
AccountMediaLikes int `json:"accountMediaLikes"`
|
||||
StatusID int `json:"statusId"`
|
||||
LastSeenAt int `json:"lastSeenAt"`
|
||||
About string `json:"about,omitempty"`
|
||||
Location string `json:"location,omitempty"`
|
||||
PostLikes int `json:"postLikes"`
|
||||
ProfileAccess bool `json:"profileAccess"`
|
||||
}
|
||||
|
35
structs/sync.go
Normal file
35
structs/sync.go
Normal file
@ -0,0 +1,35 @@
|
||||
package structs
|
||||
|
||||
type SyncProgressEvent struct {
|
||||
// The current step of the sync process.
|
||||
Step string `json:"step"`
|
||||
// The current percent done of the sync process.
|
||||
PercentDone int `json:"percent_done"`
|
||||
// The current count of the current step of the sync process.
|
||||
Count int `json:"current_count"`
|
||||
// The total count of the current step of the sync process.
|
||||
TotalCount int `json:"total_count"`
|
||||
// Are we complete?
|
||||
Complete bool `json:"complete"`
|
||||
}
|
||||
|
||||
type PasteDataReply struct {
|
||||
// The ID of the paste.
|
||||
Id string `json:"id"`
|
||||
|
||||
// The content of the paste.
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
type PastePutResponse struct {
|
||||
// If Error is not empty, the request failed.
|
||||
Error string `json:"error"`
|
||||
|
||||
// If the request was successful, this will of type PasteDataReply.
|
||||
// If the request was not successful, this will be empty.
|
||||
Payload PasteDataReply `json:"payload"`
|
||||
}
|
||||
|
||||
type PastePayload struct {
|
||||
Content string `json:"content"`
|
||||
}
|
Reference in New Issue
Block a user