.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import 'package:chat/models/moment/moment_model.dart';
|
||||
import 'package:chat/models/upload_model.dart';
|
||||
import 'package:chat/utils/request/http.dart';
|
||||
import 'package:chat/utils/network/http.dart';
|
||||
import 'package:chat/utils/ui_tools.dart';
|
||||
|
||||
class MomentProvider {
|
||||
/// 获取“发现”列表数据
|
||||
///
|
||||
/// 获取[发现]列表数据
|
||||
/// [createAt] 最后一列的create_at
|
||||
static Future<MomentModel?> fetchMomentList([String? createAt]) async {
|
||||
try {
|
||||
@@ -21,7 +20,6 @@ class MomentProvider {
|
||||
}
|
||||
|
||||
/// 点赞
|
||||
///
|
||||
/// [dynamicId]
|
||||
static Future<bool?> likeMoment(int dynamicId) async {
|
||||
try {
|
||||
@@ -34,7 +32,6 @@ class MomentProvider {
|
||||
}
|
||||
|
||||
/// 删除
|
||||
///
|
||||
/// [dynamicId]
|
||||
static Future<bool?> delMoment(int dynamicId) async {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user