WebInteractionType枚举迁移

This commit is contained in:
zhulixiao 2025-12-13 17:01:32 +08:00
parent f333f2eb6d
commit 58ca613558

View File

@ -73,6 +73,43 @@ enum ToFlutterAppEnum {
); );
} }
} }
//
enum WebInteractionType {
taskKeyWatchLive('TaskKeyWatchLive'), //
taskKeyCollectRoom('TaskKeyCollectRoom'), //
taskKeyFollowUser('TaskKeyFollowUser'), //
taskKeySendRoomMessage('TaskKeySendRoomMessage'), //
taskKeySendGift('TaskKeySendGift'), //
taskKeySendGiftId('TaskKeySendGiftId'), //
taskKeySendBackpackGift('TaskKeySendBackpackGift'), //
taskKeyPlayGame('TaskKeyPlayGame'), //
taskKeySendPrivateMessage('TaskKeySendPrivateMessage'), //
taskKeyShareActivity('TaskKeyShareActivity'), //
taskKeyTimelineTopic('TaskKeyTimelineTopic'), //
taskKeyLikeTimeline('TaskKeyLikeTimeline'), //
taskKeyReplayTimeline('TaskKeyReplayTimeline'), //
taskKeySignIn('TaskKeySignIn'), //
taskKeyOtherPage('TaskKeyOtherPage'), //
taskKeyMineBackpack('TaskKeyMineBackpack'), //
taskKeyMineWallet('TaskKeyMineWallet'), //
unknown('unknown'),
;
const WebInteractionType(
this.code,
);
final String code; // key
factory WebInteractionType.fromCode(String? code) => values.firstWhere(
(element) => element.code == code,
orElse: () => WebInteractionType.unknown,
);
}
// h5 {type:'enum',data:'所需参数 '} // h5 {type:'enum',data:'所需参数 '}
enum FromFlutterAppEnum { enum FromFlutterAppEnum {