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.
25 lines
731 B
25 lines
731 B
// Project imports:
|
|
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;
|
|
}
|
|
}
|