diff options
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> { |