mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 21:27:02 +08:00
15 lines
294 B
JavaScript
15 lines
294 B
JavaScript
const ActionSummary = {
|
|
__resolveType({action_type}) {
|
|
switch (action_type) {
|
|
case 'FLAG':
|
|
return 'FlagActionSummary';
|
|
case 'LIKE':
|
|
return 'LikeActionSummary';
|
|
case 'DONTAGREE':
|
|
return 'DontAgreeActionSummary';
|
|
}
|
|
},
|
|
};
|
|
|
|
module.exports = ActionSummary;
|