-
-
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.
- Loading branch information
Showing
12 changed files
with
129 additions
and
71 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
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,17 @@ | ||
import base from '@/api/base' | ||
//@ts-ignore | ||
import { get } from '@/utils/request' | ||
|
||
/** | ||
* 审核 ICP 备案域名 | ||
*/ | ||
const check = async (username: string, token: string, domain: string) => { | ||
const rs = get(`${base.api_v2_url}/icp/check`, { | ||
username: username, | ||
token: token, | ||
domain: domain | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default check |
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,9 @@ | ||
import list from './list' | ||
import check from './check' | ||
import remove from './remove' | ||
|
||
export default { | ||
check: check, | ||
remove: remove, | ||
list: list | ||
} |
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,16 @@ | ||
import base from '@/api/base' | ||
//@ts-ignore | ||
import { get } from '@/utils/request' | ||
|
||
/** | ||
* 列出已审核 ICP 备案域名 | ||
*/ | ||
const list = async (username: string, token: string) => { | ||
const rs = get(`${base.api_v2_url}/icp/list`, { | ||
username: username, | ||
token: token | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default list |
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 @@ | ||
import base from '@/api/base' | ||
//@ts-ignore | ||
import { deleteReq } from '@/utils/request' | ||
|
||
const remove = async (username: string, token: string, domain_id: number) => { | ||
const rs = deleteReq(`${base.api_v2_url}/icp/remove`, { | ||
username: username, | ||
token: token, | ||
id: domain_id | ||
}) | ||
return base.buildResponse(await rs) | ||
} | ||
|
||
export default remove |
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
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
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
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