This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/app/services/votes/IVoteService.ts

15 lines
361 B
TypeScript

import { User } from 'domain/users'
import { Vote } from 'domain/votes'
/**
* Vote service interface
*
* @export
* @interface IVoteService
*/
export interface IVoteService {
addVote: (vote: Vote) => Promise<string>
getVotes: () => Promise<{[postId: string]: {[voteId: string]: Vote}}>
deleteVote: (voteId: string, postId: string) => Promise<void>
}