modifyInfo static method
@Author: yuer @description: 修改用户信息 @return {*}
Implementation
static modifyInfo(Map<String, dynamic> obj, callBack) {
// var obj = {
// "icon": '',
// "userName": '',
// "gender": '',
// "sign": '',
// "birthday": '',
// "emotion": '',
// "homeProvince": '',
// "homeCity": '',
// "job": '',
// };
DioManager().request<dynamic>(RequestType.POST, RequestApi.modifyInfo, params: obj, onSuccess: (data) {
// onSuccess
callBack(data);
// onSuccess
}, onError: (error) {
// when called , already show toast, then do another things
}, onStart: () {
// onStart
}, onFinish: () {
// onFinish
});
}