Skip to content

Support Moment related methods #142

Open
@su-chang

Description

@su-chang

Methods List Supported by WxWork

  abstract momentSignature (signature?: string)                              : Promise<boolean | string>
  abstract momentCoverage (image: FileBox)                                   : Promise<boolean>
  abstract postTextMoment (content: string, visibleList?: string[])          : Promise<string>
  abstract postLinkMoment (urlLinkPayload: UrlLinkPayload, content?: string) : Promise<string>
  abstract postImageMoment (images: FileBox[], content?: string)             : Promise<string>
  abstract momentPayload (id: string)                                        : Promise<MomentPayload>

Other Methods Should be Supported

  abstract momentList (option?: MomentListOption)                            : Promise<string[]>
  abstract revokeMoment (id: string)                                         : Promise<boolean>
  abstract likeMoment (id: string)                                           : Promise<boolean>
  abstract revokeLikeMoment (id: string)                                     : Promise<boolean>
  abstract commentMoment (id: string, comment: string, commentId?: string)   : Promise<string>
  abstract revokeCommentMoment (commentId: string)                           : Promise<boolean>

Data Structure

export interface MomentPayload {
  authorId: string,
  content?: string,
  urlLink?: UrlLinkPayload,
  images?: FileBox[],
  id: string,
  createTime: number,
  updateTime: number,
}

export interface MomentListOption {
  authorId?: string,
  momentId?: string,
  page?: number,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions