15 lines
361 B
TypeScript
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>
|
|
}
|