Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moment #143

Closed
wants to merge 8 commits into from
Closed

Moment #143

wants to merge 8 commits into from

Conversation

su-chang
Copy link
Member

@su-chang su-chang commented Aug 30, 2021

Related issue: #142

@su-chang su-chang requested a review from a team as a code owner August 30, 2021 07:47
Comment on lines +516 to +518
abstract postTextMoment (content: string, visibleList?: string[]) : Promise<string>
abstract postLinkMoment (urlLinkPayload: UrlLinkPayload, content?: string) : Promise<string>
abstract postImageMoment (images: FileBox[], content?: string) : Promise<string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that possible to merge these functions into one?

abstract momentPayload (id: string) : Promise<MomentPayload>

abstract momentList (option?: MomentListOption) : Promise<string[]>
abstract revokeMoment (id: string) : Promise<boolean>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is delete or remove better than revoke?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see https://cloud.google.com/apis/design/standard_methods and let's follow the google APIs recommendation for standard methods

@su-chang su-chang closed this Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants