-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/LoCyan-Team/LoCyanFrpPanel
- Loading branch information
Showing
8 changed files
with
241 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ts-ignore | ||
import { get } from '@/utils/request' | ||
import base from '@/api/base' | ||
|
||
const all = async (user_id: number) => { | ||
const rs = get(`${base.api_v2_url}/auth/oauth/authorized/all`, { | ||
user_id: user_id | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ts-ignore | ||
import { deleteReq } from '@/utils/request' | ||
import base from '@/api/base' | ||
|
||
const app = async (user_id: number, app_id: number | undefined) => { | ||
const rs = deleteReq(`${base.api_v2_url}/auth/oauth/authorized/app`, { | ||
user_id: user_id, | ||
app_id: app_id | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export default { | ||
import all from './all.api' | ||
import app from './app.api' | ||
import session from './session.api' | ||
|
||
} | ||
export default { | ||
all: all, | ||
app: app, | ||
session: session | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//@ts-ignore | ||
import { deleteReq } from '@/utils/request' | ||
import base from '@/api/base' | ||
|
||
const session = async (user_id: number, app_id: number, session_id: number | undefined) => { | ||
const rs = deleteReq(`${base.api_v2_url}/auth/oauth/authorized/session`, { | ||
user_id: user_id, | ||
app_id: app_id, | ||
session_id: session_id | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import qq from './qq' | ||
import permission from './permission' | ||
import authorize from './authorize.api' | ||
import authorized from './authorized' | ||
|
||
export default { | ||
qq: qq, | ||
permission: permission, | ||
authorize: authorize | ||
authorize: authorize, | ||
authorized: authorized | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters