文案ok
This commit is contained in:
8
lib/api/endpoints/other.dart
Normal file
8
lib/api/endpoints/other.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'package:plan/api/dto/daily_tip_dto.dart';
|
||||
import 'package:plan/api/network/request.dart';
|
||||
|
||||
///获取每日一句列表
|
||||
Future<List<DailyTipDto>> getDailyTipList() async {
|
||||
var res = await Request().get("/daily_tips");
|
||||
return (res as List).map((e) => DailyTipDto.fromJson(e)).toList();
|
||||
}
|
||||
Reference in New Issue
Block a user