import 'package:get/get.dart'; import 'api_provider_base.dart'; class ApiProvider extends BaseProvider { Future getVerificationCode( String countryCode, String account, String channel, String uniqueid, String xWidth) => post(getVerificationCodeUrl.toUrl, null, query: { 'countryCode':countryCode, 'account':account, "channel":channel, 'codeType':"1", "uniqueid":uniqueid, 'xWidth':xWidth, }); Future register( String countryCode, String countryId, String mobile, String password, String uniqueid, String verificationCode) => post(registerUrl.toUrl, null,query: { 'countryCode':countryCode, 'countryId':countryId, "mobile":mobile, 'password':password, 'platId':"2", "uniqueid":uniqueid, 'verificationCode':verificationCode, }); Future getSliderVerifyImg( String countryCode, String account) => post(getSliderVerifyImgUrl.toUrl, null,query: { 'countryCode':countryCode, 'account':account, }); Future checkSliderVerifyImg( String countryCode, String account, String xWidth) => post(checkImgUrl.toUrl, null,query: { 'countryCode':countryCode, 'account':account, 'xWidth':xWidth, }); Future login( String loginType, String password, String countryCode, String username) => post(loginUrl.toUrl, null,query: { 'loginType':loginType, 'password':password, "platId":"2", 'uniqueid':"477E6814-289D-402A-9F49-F89A8BD05D63", 'countryCode':countryCode, "username":username }); } extension ExtensionString on String { String get toUrl => '$this'; }