|
|
|
@ -23,19 +23,19 @@ class API {
|
|
|
|
|
|
|
|
|
|
static String get baseURL => '$host';
|
|
|
|
|
|
|
|
|
|
static _Manager manager = _Manager();
|
|
|
|
|
static _App app = _App();
|
|
|
|
|
static _Pay pay = _Pay();
|
|
|
|
|
}
|
|
|
|
|
class _Manager {
|
|
|
|
|
String get login => '/manage/login';
|
|
|
|
|
String get logout => '/manage/login/logout';
|
|
|
|
|
String get captcha => '/manage/captcha';
|
|
|
|
|
String get info => '/manage/user/info';
|
|
|
|
|
class _App {
|
|
|
|
|
String get login => '/app/login';
|
|
|
|
|
String get logout => '/app/login/logout';
|
|
|
|
|
String get captcha => '/app/captcha';
|
|
|
|
|
String get info => '/app/user/info';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _Pay {
|
|
|
|
|
String get wxpay => '/manage/pay/wxpay';
|
|
|
|
|
String get alipay => '/manage/pay/alipay';
|
|
|
|
|
String get wxpay => '/app/pay/wxpay';
|
|
|
|
|
String get alipay => '/app/pay/alipay';
|
|
|
|
|
String get wxCallback => '/callback/wxpay/notify';
|
|
|
|
|
String get aliCallback => '/callback/alipay/notify';
|
|
|
|
|
}
|