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.
24 lines
711 B
24 lines
711 B
4 years ago
|
import 'package:aku_community_manager/const/api.dart';
|
||
|
import 'package:aku_community_manager/utils/network/base_model.dart';
|
||
|
import 'package:aku_community_manager/utils/network/net_util.dart';
|
||
|
|
||
|
class UpdateUserInfoFunc {
|
||
|
static Future<BaseModel> sendTelUpdateCode(String tel) async {
|
||
|
BaseModel baseModel =
|
||
|
await NetUtil().post(API.user.sendTelUpdateCode, params: {
|
||
|
'newTel': tel,
|
||
|
});
|
||
|
return baseModel;
|
||
|
}
|
||
|
|
||
|
static Future<BaseModel> updateTel(
|
||
|
String oldTel, String newTel, String code) async {
|
||
|
BaseModel baseModel = await NetUtil().post(API.user.updateTel, params: {
|
||
|
'oldTel': oldTel,
|
||
|
'newTel': newTel,
|
||
|
'code': code,
|
||
|
});
|
||
|
return baseModel;
|
||
|
}
|
||
|
}
|