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
751 B

// Project imports:
import 'package:aku_new_community_manager/const/api.dart';
import 'package:aku_new_community_manager/saas_models/net_model/base_model.dart';
import 'package:aku_new_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;
}
}