You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
382 B
15 lines
382 B
import 'package:get/get.dart';
|
|
import '../controllers/music_controller.dart';
|
|
|
|
/// 音乐模块绑定
|
|
/// 负责注册音乐相关的控制器和服务
|
|
class MusicBinding extends Bindings {
|
|
@override
|
|
void dependencies() {
|
|
// 注册音乐控制器为单例
|
|
Get.lazyPut<MusicController>(
|
|
() => MusicController(),
|
|
fenix: true, // 允许重新创建
|
|
);
|
|
}
|
|
}
|