-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
76 changed files
with
2,704 additions
and
720 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 |
---|---|---|
|
@@ -90,6 +90,7 @@ | |
"prepatch", | ||
"promisify", | ||
"pty", | ||
"Qrcode", | ||
"readdir", | ||
"readme", | ||
"readonly", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
export { default as getUserInfo } from './getUserInfo' | ||
export { | ||
createMergeRequest, | ||
getMergeRequestList, | ||
getMergeRequestCommits, | ||
getMergeRequestCloseIssues, | ||
getMergeRequestParticipants, | ||
getMergeRequestChanges, | ||
getMergeRequestDiffVersions, | ||
acceptMergeRequest, | ||
updateMergeRequest, | ||
deleteMergeRequest | ||
} from './mergeRequest' | ||
export { | ||
createMergeRequestNotes, | ||
deleteMergeRequestNotes, | ||
getMergeRequestNotesDetail, | ||
getMergeRequestNotesList, | ||
updateMergeRequestNotes | ||
} from './mergeRequestNotes' | ||
export * from './mergeRequest' | ||
export * from './mergeRequestNotes' | ||
export * from './miniprogram' | ||
|
||
export { default } from './index.default' | ||
export type * from './index.default' | ||
export type * from './types' | ||
export const version = '__VERSION__' as string |
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,68 @@ | ||
import { post } from '../request/miniprogram' | ||
|
||
const URL_PREFIX = '/api/component/weixin/authorization' | ||
|
||
export interface GetAuthorizerListWithAllDetailOptions { | ||
current?: number | ||
limit?: number | ||
keyword?: string | ||
} | ||
export interface GetAuthorizerListWithAllDetailItem { | ||
auth_time: number | ||
authorization_info: { | ||
authorizer_appid: string | ||
func_info: Record<string, unknown> | ||
} | ||
authorizer_appid: string | ||
authorizer_info: { | ||
MiniProgramInfo: Record<string, unknown> | ||
account_status: number | ||
alias: string | ||
basic_config: Record<string, unknown> | ||
business_info: Record<string, unknown> | ||
head_img: string | ||
idc: number | ||
nick_name: string | ||
principal_name: string | ||
qrcode_url: string | ||
register_type: number | ||
service_type_info: Record<string, unknown> | ||
signature: string | ||
user_name: string | ||
verify_type_info: Record<string, unknown> | ||
} | ||
release_info: { | ||
release_desc: string | ||
release_time: number | ||
release_version: string | ||
} | ||
} | ||
export interface GetAuthorizerListWithAllDetail { | ||
total: number | ||
list: GetAuthorizerListWithAllDetailItem[] | ||
current: number | ||
limit: number // max is 500 | ||
} | ||
/** | ||
* getAuthorizerListWithAllDetail | ||
* | ||
* @param options - options | ||
* @returns data | ||
*/ | ||
export async function getAuthorizerListWithAllDetail< | ||
T extends GetAuthorizerListWithAllDetailOptions | ||
>(options?: T) { | ||
const { current = 1, limit = 50, keyword } = options || {} | ||
return post<GetAuthorizerListWithAllDetail>({ | ||
url: `${URL_PREFIX}/getAuthorizerListWithAllDetail`, | ||
data: { | ||
current, | ||
limit, | ||
keyword | ||
} | ||
}) | ||
} | ||
|
||
export default { | ||
getAuthorizerListWithAllDetail | ||
} |
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,30 @@ | ||
import { get } from '../request/miniprogram' | ||
|
||
const URL_PREFIX = '/api/component/clients' | ||
|
||
export interface GetClientsConfig { | ||
appID: string | ||
extJson: string | ||
config: string | ||
createTime: string | ||
updateTime: string | ||
id: string | ||
} | ||
/** | ||
* get clients config by appID | ||
* | ||
* @param appID - miniprogram appID | ||
* @returns data | ||
*/ | ||
export async function getClientsConfig(appID: string) { | ||
return get<GetClientsConfig>({ | ||
url: `${URL_PREFIX}/configuration/getConfig`, | ||
data: { | ||
appID | ||
} | ||
}) | ||
} | ||
|
||
export default { | ||
getClientsConfig | ||
} |
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,4 @@ | ||
export * from './authorization' | ||
export * from './mpManage' | ||
export * from './ticket' | ||
export * from './clients' |
Oops, something went wrong.