feat: add manual and changelog url.

This commit is contained in:
2022-01-21 17:42:05 +08:00
parent c3ef400372
commit dd530fdf93
2 changed files with 16 additions and 4 deletions
+8 -3
View File
@@ -3,7 +3,10 @@ class Apis {
static const apiHost = 'home.debuggerx.com';
static const apiPort = 30000;
static const appNewVersionUrl = 'https://www.debuggerx.com';
static const appNewVersionUrl = 'https://www.debuggerx.com/2022/01/21/dgm-changelog?from=app';
static appManualUrl(bool isWeb) =>
'https://www.debuggerx.com/2022/01/21/dgm-manual?from=app_${isWeb ? 'web' : 'linux'}';
static final system = SystemApis();
static final auth = AuthApis();
@@ -35,11 +38,13 @@ class SchemeApis {
String user({required StringParam type}) => [path, 'user', type].joinPath();
String market({required StringParam type, required IntParam page, required IntParam pageSize}) => [path, 'market', type, page, pageSize].joinPath();
String market({required StringParam type, required IntParam page, required IntParam pageSize}) =>
[path, 'market', type, page, pageSize].joinPath();
String download({required StringParam schemeId}) => [path, 'download', schemeId].joinPath();
String like({required StringParam schemeId, required StringParam isLike}) => [path, 'like', schemeId, isLike].joinPath();
String like({required StringParam schemeId, required StringParam isLike}) =>
[path, 'like', schemeId, isLike].joinPath();
String get userLikes => [path, 'user-likes'].joinPath();
}