diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-13 17:39:41 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 7a7724e66e4533523083e7336cd0d0c747c4a33b (patch) | |
tree | 805299eb9c6829158cd17e5a823a84a3a54d8209 /server/models/account/account-follow-interface.ts | |
parent | 571389d43b8fc8aaf27e77c06f19b320b08dbbc9 (diff) | |
download | PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.tar.gz PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.tar.zst PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.zip |
Handle follow/accept
Diffstat (limited to 'server/models/account/account-follow-interface.ts')
-rw-r--r-- | server/models/account/account-follow-interface.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/models/account/account-follow-interface.ts b/server/models/account/account-follow-interface.ts index 3be383649..efdff915e 100644 --- a/server/models/account/account-follow-interface.ts +++ b/server/models/account/account-follow-interface.ts | |||
@@ -1,17 +1,19 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | import * as Promise from 'bluebird' | 2 | import * as Bluebird from 'bluebird' |
3 | 3 | import { FollowState } from '../../../shared/models/accounts/follow.model' | |
4 | import { VideoRateType } from '../../../shared/models/videos/video-rate.type' | ||
5 | 4 | ||
6 | export namespace AccountFollowMethods { | 5 | export namespace AccountFollowMethods { |
6 | export type LoadByAccountAndTarget = (accountId: number, targetAccountId: number) => Bluebird<AccountFollowInstance> | ||
7 | } | 7 | } |
8 | 8 | ||
9 | export interface AccountFollowClass { | 9 | export interface AccountFollowClass { |
10 | loadByAccountAndTarget: AccountFollowMethods.LoadByAccountAndTarget | ||
10 | } | 11 | } |
11 | 12 | ||
12 | export interface AccountFollowAttributes { | 13 | export interface AccountFollowAttributes { |
13 | accountId: number | 14 | accountId: number |
14 | targetAccountId: number | 15 | targetAccountId: number |
16 | state: FollowState | ||
15 | } | 17 | } |
16 | 18 | ||
17 | export interface AccountFollowInstance extends AccountFollowClass, AccountFollowAttributes, Sequelize.Instance<AccountFollowAttributes> { | 19 | export interface AccountFollowInstance extends AccountFollowClass, AccountFollowAttributes, Sequelize.Instance<AccountFollowAttributes> { |