网关添加secret密钥字段 & 更新脚本的远程仓库地址
This commit is contained in:
@@ -8,22 +8,17 @@ export async function getGatewayPage(params: { page: number; size: number }) {
|
||||
return callByUser<PageRecord<Gateway>>("/api/admin/proxy/page", params)
|
||||
}
|
||||
|
||||
|
||||
export async function createGateway(data: {
|
||||
mac: string
|
||||
ip: string
|
||||
host?: string
|
||||
type: number
|
||||
status: number
|
||||
secret: string
|
||||
}) {
|
||||
return callByUser<Gateway>("/api/admin/proxy/create", data)
|
||||
}
|
||||
|
||||
export async function updateGateway(data:{
|
||||
id: number,
|
||||
status: number}
|
||||
) {
|
||||
return callByUser<Gateway>("/api/admin/proxy/update/status",
|
||||
data
|
||||
)
|
||||
export async function updateGateway(data: { id: number; status: number }) {
|
||||
return callByUser<Gateway>("/api/admin/proxy/update/status", data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user