-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea32a0b
commit ef5fbc2
Showing
3 changed files
with
68 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package operations | ||
|
||
|
||
var ( | ||
TypeFollow = "follow" | ||
TypeReblog = "reblog" | ||
TypeDeleteReblog = "delete_reblog" | ||
) | ||
|
||
var customJSONDataObjects = map[string]interface{}{ | ||
TypeFollow: &FollowOperation{}, | ||
TypeReblog: &ReblogOperation{}, | ||
TypeDeleteReblog: &DeleteReblogOperation{}, | ||
} | ||
|
||
//FollowOperation the structure for the operation CustomJSONOperation. | ||
type FollowOperation struct { | ||
Follower string `json:"follower"` | ||
Following string `json:"following"` | ||
What []string `json:"what"` | ||
} | ||
|
||
//ReblogOperation the structure for the operation CustomJSONOperation. | ||
type ReblogOperation struct { | ||
Account string `json:"account"` | ||
Author string `json:"author"` | ||
Permlink string `json:"permlink"` | ||
Title string `json:"title"` | ||
Body string `json:"body"` | ||
JSONMetadata string `json:"json_metadata"` | ||
} | ||
|
||
//DeleteReblogOperation the structure for the operation CustomJSONOperation. | ||
type DeleteReblogOperation struct { | ||
Account string `json:"account"` | ||
Author string `json:"author"` | ||
Permlink string `json:"permlink"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters