register method
Future<bool>
register(
- String loginName,
- String password,
- String pic, {
- ApiError? apiError,
- ValueChanged? otherDataHandle,
注册一个典典账号
loginName : 登录用户名,登录名不能小于5个字符
password : 用户登录密码,登录密码不能少于6个字符
pic : 用户的头像url,请输入一个有效url
Implementation
Future<bool> register(String loginName, String password, String pic,
{ApiError? apiError, ValueChanged<dynamic>? otherDataHandle}) async {
final result = await util.post('$userApiUrl/registor',
isTaokeApi: false,
data: {'loginName': loginName, 'password': password, 'pic': pic},
error: apiError,
otherDataHandle: otherDataHandle);
return result == '注册成功';
}