启动成功
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
gfcli:
|
gfcli:
|
||||||
gen:
|
gen:
|
||||||
dao:
|
dao:
|
||||||
- link: "mysql:root:123456@tcp(127.0.0.1:3306)/fitness_app"
|
- link: "mysql:root:123456@tcp(127.0.0.1:3306)/trangleagent"
|
||||||
table: "forum_posts,forum_comments"
|
table: "forum_posts,forum_comments"
|
||||||
descriptionTag: true
|
descriptionTag: true
|
||||||
jsonCase: "CamelLower" # 生成json字段时,字段名使用驼峰命名
|
jsonCase: "CamelLower" # 生成json字段时,字段名使用驼峰命名
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ func New() *sLogin {
|
|||||||
return &sLogin{}
|
return &sLogin{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关键!!在 init 里完成注册
|
|
||||||
func init() {
|
func init() {
|
||||||
service.RegisterLogin(New())
|
service.RegisterLogin(New())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/containment/v1"
|
v1 "TrangleAgent/api/containment/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/department/v1"
|
v1 "TrangleAgent/api/department/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/user/v1"
|
v1 "TrangleAgent/api/user/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/forum/v1"
|
v1 "TrangleAgent/api/forum/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/login/v1"
|
v1 "TrangleAgent/api/login/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/room/v1"
|
v1 "TrangleAgent/api/room/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/user/v1"
|
v1 "TrangleAgent/api/user/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/user/v1"
|
v1 "TrangleAgent/api/user/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
v1 "TrangleAgent/api/user/v1"
|
v1 "TrangleAgent/api/user/v1"
|
||||||
|
"context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiDepartmentV1DepartmentDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除部门
|
||||||
|
* /api/department/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiDepartmentDelete(params: DeleteApiDepartmentDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiDepartmentV1DepartmentDeleteRes>>(`/api/department/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiDepartmentDeleteParams {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
34
Frontend/src/api/controller/BuMen/getApiDepartmentList.ts
Normal file
34
Frontend/src/api/controller/BuMen/getApiDepartmentList.ts
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiDepartmentV1DepartmentListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 部门列表
|
||||||
|
* /api/department/list
|
||||||
|
*/
|
||||||
|
export function getApiDepartmentList(params: GetApiDepartmentListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
branchName: params.branchName,
|
||||||
|
managerName: params.managerName,
|
||||||
|
userId: params.userId,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiDepartmentV1DepartmentListRes>>(`/api/department/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiDepartmentListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 分部名称 */
|
||||||
|
branchName?: string;
|
||||||
|
/** 分部经理名称 */
|
||||||
|
managerName?: string;
|
||||||
|
/** 所属用户ID */
|
||||||
|
userId?: number;
|
||||||
|
}
|
||||||
21
Frontend/src/api/controller/BuMen/getApiDepartmentView.ts
Normal file
21
Frontend/src/api/controller/BuMen/getApiDepartmentView.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiDepartmentV1DepartmentViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 部门详情
|
||||||
|
* /api/department/view
|
||||||
|
*/
|
||||||
|
export function getApiDepartmentView(params: GetApiDepartmentViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiDepartmentV1DepartmentViewRes>>(`/api/department/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiDepartmentViewParams {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
5
Frontend/src/api/controller/BuMen/index.ts
Normal file
5
Frontend/src/api/controller/BuMen/index.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export * from "./postApiDepartmentCreate";
|
||||||
|
export * from "./deleteApiDepartmentDelete";
|
||||||
|
export * from "./getApiDepartmentList";
|
||||||
|
export * from "./putApiDepartmentUpdate";
|
||||||
|
export * from "./getApiDepartmentView";
|
||||||
11
Frontend/src/api/controller/BuMen/postApiDepartmentCreate.ts
Normal file
11
Frontend/src/api/controller/BuMen/postApiDepartmentCreate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiDepartmentV1DepartmentCreateRes, type DeepRequired, type TrangleAgentApiDepartmentV1DepartmentCreateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建部门
|
||||||
|
* /api/department/create
|
||||||
|
*/
|
||||||
|
export function postApiDepartmentCreate(input?: TrangleAgentApiDepartmentV1DepartmentCreateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiDepartmentV1DepartmentCreateRes>>(`/api/department/create`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/BuMen/putApiDepartmentUpdate.ts
Normal file
11
Frontend/src/api/controller/BuMen/putApiDepartmentUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiDepartmentV1DepartmentUpdateRes, type DeepRequired, type TrangleAgentApiDepartmentV1DepartmentUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新部门
|
||||||
|
* /api/department/update
|
||||||
|
*/
|
||||||
|
export function putApiDepartmentUpdate(input?: TrangleAgentApiDepartmentV1DepartmentUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiDepartmentV1DepartmentUpdateRes>>(`/api/department/update`, input, config);
|
||||||
|
}
|
||||||
1
Frontend/src/api/controller/DengChu/index.ts
Normal file
1
Frontend/src/api/controller/DengChu/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from "./postApiLogout";
|
||||||
11
Frontend/src/api/controller/DengChu/postApiLogout.ts
Normal file
11
Frontend/src/api/controller/DengChu/postApiLogout.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiLoginV1LogoutRes, type DeepRequired, type TrangleAgentApiLoginV1LogoutReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户登出
|
||||||
|
* /api/logout
|
||||||
|
*/
|
||||||
|
export function postApiLogout(input?: TrangleAgentApiLoginV1LogoutReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiLoginV1LogoutRes>>(`/api/logout`, input, config);
|
||||||
|
}
|
||||||
2
Frontend/src/api/controller/DengLu/index.ts
Normal file
2
Frontend/src/api/controller/DengLu/index.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export * from "./postApiLogin";
|
||||||
|
export * from "./postApiLoginEmail";
|
||||||
11
Frontend/src/api/controller/DengLu/postApiLogin.ts
Normal file
11
Frontend/src/api/controller/DengLu/postApiLogin.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiLoginV1LoginRes, type DeepRequired, type TrangleAgentApiLoginV1LoginReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户登录
|
||||||
|
* /api/login
|
||||||
|
*/
|
||||||
|
export function postApiLogin(input?: TrangleAgentApiLoginV1LoginReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiLoginV1LoginRes>>(`/api/login`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/DengLu/postApiLoginEmail.ts
Normal file
11
Frontend/src/api/controller/DengLu/postApiLoginEmail.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiLoginV1LoginByEmailRes, type DeepRequired, type TrangleAgentApiLoginV1LoginByEmailReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户邮箱登录
|
||||||
|
* /api/login/email
|
||||||
|
*/
|
||||||
|
export function postApiLoginEmail(input?: TrangleAgentApiLoginV1LoginByEmailReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiLoginV1LoginByEmailRes>>(`/api/login/email`, input, config);
|
||||||
|
}
|
||||||
22
Frontend/src/api/controller/FangJian/deleteApiRoomDelete.ts
Normal file
22
Frontend/src/api/controller/FangJian/deleteApiRoomDelete.ts
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiRoomV1RoomDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间
|
||||||
|
* /api/room/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiRoomDelete(params: DeleteApiRoomDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
room_code: params.room_code,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiRoomV1RoomDeleteRes>>(`/api/room/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiRoomDeleteParams {
|
||||||
|
/** 房间号 */
|
||||||
|
room_code?: string;
|
||||||
|
}
|
||||||
40
Frontend/src/api/controller/FangJian/getApiRoomList.ts
Normal file
40
Frontend/src/api/controller/FangJian/getApiRoomList.ts
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiRoomV1RoomListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间列表
|
||||||
|
* /api/room/list
|
||||||
|
*/
|
||||||
|
export function getApiRoomList(params: GetApiRoomListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
room_code: params.room_code,
|
||||||
|
room_name: params.room_name,
|
||||||
|
host_id: params.host_id,
|
||||||
|
status: params.status,
|
||||||
|
system_name: params.system_name,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiRoomV1RoomListRes>>(`/api/room/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiRoomListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 房间号 */
|
||||||
|
room_code?: string;
|
||||||
|
/** 房间名称 */
|
||||||
|
room_name?: string;
|
||||||
|
/** 主持人用户ID */
|
||||||
|
host_id?: number;
|
||||||
|
/** 房间状态:0未开始 1进行中 2已结束 3已关闭 */
|
||||||
|
status?: number;
|
||||||
|
/** 规则系统,如COC、DND5E */
|
||||||
|
system_name?: string;
|
||||||
|
}
|
||||||
25
Frontend/src/api/controller/FangJian/getApiRoomView.ts
Normal file
25
Frontend/src/api/controller/FangJian/getApiRoomView.ts
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiRoomV1RoomViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间详情
|
||||||
|
* /api/room/view
|
||||||
|
*/
|
||||||
|
export function getApiRoomView(params: GetApiRoomViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
room_code: params.room_code,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiRoomV1RoomViewRes>>(`/api/room/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiRoomViewParams {
|
||||||
|
/** 房间ID */
|
||||||
|
id?: number;
|
||||||
|
/** 房间号 */
|
||||||
|
room_code?: string;
|
||||||
|
}
|
||||||
6
Frontend/src/api/controller/FangJian/index.ts
Normal file
6
Frontend/src/api/controller/FangJian/index.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export * from "./postApiRoomCreate";
|
||||||
|
export * from "./deleteApiRoomDelete";
|
||||||
|
export * from "./postApiRoomJoin";
|
||||||
|
export * from "./getApiRoomList";
|
||||||
|
export * from "./putApiRoomUpdate";
|
||||||
|
export * from "./getApiRoomView";
|
||||||
11
Frontend/src/api/controller/FangJian/postApiRoomCreate.ts
Normal file
11
Frontend/src/api/controller/FangJian/postApiRoomCreate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiRoomV1RoomCreateRes, type DeepRequired, type TrangleAgentApiRoomV1RoomCreateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建房间
|
||||||
|
* /api/room/create
|
||||||
|
*/
|
||||||
|
export function postApiRoomCreate(input?: TrangleAgentApiRoomV1RoomCreateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiRoomV1RoomCreateRes>>(`/api/room/create`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/FangJian/postApiRoomJoin.ts
Normal file
11
Frontend/src/api/controller/FangJian/postApiRoomJoin.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiRoomV1RoomJoinRes, type DeepRequired, type TrangleAgentApiRoomV1RoomJoinReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加入房间
|
||||||
|
* /api/room/join
|
||||||
|
*/
|
||||||
|
export function postApiRoomJoin(input?: TrangleAgentApiRoomV1RoomJoinReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiRoomV1RoomJoinRes>>(`/api/room/join`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/FangJian/putApiRoomUpdate.ts
Normal file
11
Frontend/src/api/controller/FangJian/putApiRoomUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiRoomV1RoomUpdateRes, type DeepRequired, type TrangleAgentApiRoomV1RoomUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新房间
|
||||||
|
* /api/room/update
|
||||||
|
*/
|
||||||
|
export function putApiRoomUpdate(input?: TrangleAgentApiRoomV1RoomUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiRoomV1RoomUpdateRes>>(`/api/room/update`, input, config);
|
||||||
|
}
|
||||||
21
Frontend/src/api/controller/FenSi/deleteApiFansDelete.ts
Normal file
21
Frontend/src/api/controller/FenSi/deleteApiFansDelete.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1FansDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除粉丝
|
||||||
|
* /api/fans/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiFansDelete(params: DeleteApiFansDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiUserV1FansDeleteRes>>(`/api/fans/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiFansDeleteParams {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
30
Frontend/src/api/controller/FenSi/getApiFansList.ts
Normal file
30
Frontend/src/api/controller/FenSi/getApiFansList.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1FansListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 粉丝列表
|
||||||
|
* /api/fans/list
|
||||||
|
*/
|
||||||
|
export function getApiFansList(params: GetApiFansListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
userId: params.userId,
|
||||||
|
status: params.status,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1FansListRes>>(`/api/fans/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiFansListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
userId: number;
|
||||||
|
/** 状态:1=粉丝 0=取关/无效 */
|
||||||
|
status?: number;
|
||||||
|
}
|
||||||
21
Frontend/src/api/controller/FenSi/getApiFansView.ts
Normal file
21
Frontend/src/api/controller/FenSi/getApiFansView.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1FansViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 粉丝详情
|
||||||
|
* /api/fans/view
|
||||||
|
*/
|
||||||
|
export function getApiFansView(params: GetApiFansViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1FansViewRes>>(`/api/fans/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiFansViewParams {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
5
Frontend/src/api/controller/FenSi/index.ts
Normal file
5
Frontend/src/api/controller/FenSi/index.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export * from "./postApiFansCreate";
|
||||||
|
export * from "./deleteApiFansDelete";
|
||||||
|
export * from "./getApiFansList";
|
||||||
|
export * from "./putApiFansUpdate";
|
||||||
|
export * from "./getApiFansView";
|
||||||
11
Frontend/src/api/controller/FenSi/postApiFansCreate.ts
Normal file
11
Frontend/src/api/controller/FenSi/postApiFansCreate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1FansCreateRes, type DeepRequired, type TrangleAgentApiUserV1FansCreateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建粉丝
|
||||||
|
* /api/fans/create
|
||||||
|
*/
|
||||||
|
export function postApiFansCreate(input?: TrangleAgentApiUserV1FansCreateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiUserV1FansCreateRes>>(`/api/fans/create`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/FenSi/putApiFansUpdate.ts
Normal file
11
Frontend/src/api/controller/FenSi/putApiFansUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1FansUpdateRes, type DeepRequired, type TrangleAgentApiUserV1FansUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新粉丝
|
||||||
|
* /api/fans/update
|
||||||
|
*/
|
||||||
|
export function putApiFansUpdate(input?: TrangleAgentApiUserV1FansUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiUserV1FansUpdateRes>>(`/api/fans/update`, input, config);
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1SubscribeDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除关注
|
||||||
|
* /api/subscribe/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiSubscribeDelete(params: DeleteApiSubscribeDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiUserV1SubscribeDeleteRes>>(`/api/subscribe/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiSubscribeDeleteParams {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
33
Frontend/src/api/controller/GuanZhu/getApiSubscribeList.ts
Normal file
33
Frontend/src/api/controller/GuanZhu/getApiSubscribeList.ts
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1SubscribeListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关注列表
|
||||||
|
* /api/subscribe/list
|
||||||
|
*/
|
||||||
|
export function getApiSubscribeList(params: GetApiSubscribeListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
userId: params.userId,
|
||||||
|
status: params.status,
|
||||||
|
followId: params.followId,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1SubscribeListRes>>(`/api/subscribe/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiSubscribeListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
userId: number;
|
||||||
|
/** 状态:1=关注中 0=取消关注 */
|
||||||
|
status?: number;
|
||||||
|
/** 被关注的用户ID */
|
||||||
|
followId?: number;
|
||||||
|
}
|
||||||
21
Frontend/src/api/controller/GuanZhu/getApiSubscribeView.ts
Normal file
21
Frontend/src/api/controller/GuanZhu/getApiSubscribeView.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1SubscribeViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关注详情
|
||||||
|
* /api/subscribe/view
|
||||||
|
*/
|
||||||
|
export function getApiSubscribeView(params: GetApiSubscribeViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1SubscribeViewRes>>(`/api/subscribe/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiSubscribeViewParams {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
5
Frontend/src/api/controller/GuanZhu/index.ts
Normal file
5
Frontend/src/api/controller/GuanZhu/index.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export * from "./postApiSubscribeCreate";
|
||||||
|
export * from "./deleteApiSubscribeDelete";
|
||||||
|
export * from "./getApiSubscribeList";
|
||||||
|
export * from "./putApiSubscribeUpdate";
|
||||||
|
export * from "./getApiSubscribeView";
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1SubscribeCreateRes, type DeepRequired, type TrangleAgentApiUserV1SubscribeCreateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建关注
|
||||||
|
* /api/subscribe/create
|
||||||
|
*/
|
||||||
|
export function postApiSubscribeCreate(input?: TrangleAgentApiUserV1SubscribeCreateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiUserV1SubscribeCreateRes>>(`/api/subscribe/create`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/GuanZhu/putApiSubscribeUpdate.ts
Normal file
11
Frontend/src/api/controller/GuanZhu/putApiSubscribeUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1SubscribeUpdateRes, type DeepRequired, type TrangleAgentApiUserV1SubscribeUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新关注
|
||||||
|
* /api/subscribe/update
|
||||||
|
*/
|
||||||
|
export function putApiSubscribeUpdate(input?: TrangleAgentApiUserV1SubscribeUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiUserV1SubscribeUpdateRes>>(`/api/subscribe/update`, input, config);
|
||||||
|
}
|
||||||
31
Frontend/src/api/controller/GuiJi/deleteApiTraceReduce.ts
Normal file
31
Frontend/src/api/controller/GuiJi/deleteApiTraceReduce.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1TraceReduceRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轨迹
|
||||||
|
* /api/trace/Reduce
|
||||||
|
*/
|
||||||
|
export function deleteApiTraceReduce(params: DeleteApiTraceReduceParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
roleId: params.roleId,
|
||||||
|
redTrace: params.redTrace,
|
||||||
|
yellowTrace: params.yellowTrace,
|
||||||
|
blueTrace: params.blueTrace,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiUserV1TraceReduceRes>>(`/api/trace/Reduce`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiTraceReduceParams {
|
||||||
|
/** 角色ID */
|
||||||
|
roleId?: number;
|
||||||
|
/** 红轨 */
|
||||||
|
redTrace?: number;
|
||||||
|
/** 黄轨 */
|
||||||
|
yellowTrace?: number;
|
||||||
|
/** 蓝轨 */
|
||||||
|
blueTrace?: number;
|
||||||
|
}
|
||||||
43
Frontend/src/api/controller/GuiJi/getApiTraceList.ts
Normal file
43
Frontend/src/api/controller/GuiJi/getApiTraceList.ts
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1TraceListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轨迹列表
|
||||||
|
* /api/trace/list
|
||||||
|
*/
|
||||||
|
export function getApiTraceList(params: GetApiTraceListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
userId: params.userId,
|
||||||
|
roleId: params.roleId,
|
||||||
|
departmentId: params.departmentId,
|
||||||
|
redTrace: params.redTrace,
|
||||||
|
yellowTrace: params.yellowTrace,
|
||||||
|
blueTrace: params.blueTrace,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1TraceListRes>>(`/api/trace/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiTraceListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 用户ID */
|
||||||
|
userId?: number;
|
||||||
|
/** 角色ID */
|
||||||
|
roleId?: number;
|
||||||
|
/** 部门ID */
|
||||||
|
departmentId?: number;
|
||||||
|
/** 红轨 */
|
||||||
|
redTrace?: number;
|
||||||
|
/** 黄轨 */
|
||||||
|
yellowTrace?: number;
|
||||||
|
/** 蓝轨 */
|
||||||
|
blueTrace?: number;
|
||||||
|
}
|
||||||
31
Frontend/src/api/controller/GuiJi/getApiTraceView.ts
Normal file
31
Frontend/src/api/controller/GuiJi/getApiTraceView.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1TraceViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轨迹详情
|
||||||
|
* /api/trace/view
|
||||||
|
*/
|
||||||
|
export function getApiTraceView(params: GetApiTraceViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
roleId: params.roleId,
|
||||||
|
redTrace: params.redTrace,
|
||||||
|
yellowTrace: params.yellowTrace,
|
||||||
|
blueTrace: params.blueTrace,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1TraceViewRes>>(`/api/trace/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiTraceViewParams {
|
||||||
|
/** 角色ID */
|
||||||
|
roleId?: number;
|
||||||
|
/** 红轨 */
|
||||||
|
redTrace?: number;
|
||||||
|
/** 黄轨 */
|
||||||
|
yellowTrace?: number;
|
||||||
|
/** 蓝轨 */
|
||||||
|
blueTrace?: number;
|
||||||
|
}
|
||||||
4
Frontend/src/api/controller/GuiJi/index.ts
Normal file
4
Frontend/src/api/controller/GuiJi/index.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export * from "./deleteApiTraceReduce";
|
||||||
|
export * from "./getApiTraceList";
|
||||||
|
export * from "./putApiTraceUpdate";
|
||||||
|
export * from "./getApiTraceView";
|
||||||
11
Frontend/src/api/controller/GuiJi/putApiTraceUpdate.ts
Normal file
11
Frontend/src/api/controller/GuiJi/putApiTraceUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1TraceUpdateRes, type DeepRequired, type TrangleAgentApiUserV1TraceUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新轨迹
|
||||||
|
* /api/trace/update
|
||||||
|
*/
|
||||||
|
export function putApiTraceUpdate(input?: TrangleAgentApiUserV1TraceUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiUserV1TraceUpdateRes>>(`/api/trace/update`, input, config);
|
||||||
|
}
|
||||||
22
Frontend/src/api/controller/JiaoSe/deleteApiRoleDelete.ts
Normal file
22
Frontend/src/api/controller/JiaoSe/deleteApiRoleDelete.ts
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1RoleDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除角色
|
||||||
|
* /api/role/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiRoleDelete(params: DeleteApiRoleDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiUserV1RoleDeleteRes>>(`/api/role/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiRoleDeleteParams {
|
||||||
|
/** 角色ID */
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
31
Frontend/src/api/controller/JiaoSe/getApiRoleList.ts
Normal file
31
Frontend/src/api/controller/JiaoSe/getApiRoleList.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1RoleListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色列表
|
||||||
|
* /api/role/list
|
||||||
|
*/
|
||||||
|
export function getApiRoleList(params: GetApiRoleListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
userId: params.userId,
|
||||||
|
departmentId: params.departmentId,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1RoleListRes>>(`/api/role/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiRoleListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 用户ID */
|
||||||
|
userId?: number;
|
||||||
|
/** 部门ID */
|
||||||
|
departmentId?: number;
|
||||||
|
}
|
||||||
22
Frontend/src/api/controller/JiaoSe/getApiRoleView.ts
Normal file
22
Frontend/src/api/controller/JiaoSe/getApiRoleView.ts
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1RoleViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查看角色
|
||||||
|
* /api/role/view
|
||||||
|
*/
|
||||||
|
export function getApiRoleView(params: GetApiRoleViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1RoleViewRes>>(`/api/role/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiRoleViewParams {
|
||||||
|
/** 角色ID */
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
6
Frontend/src/api/controller/JiaoSe/index.ts
Normal file
6
Frontend/src/api/controller/JiaoSe/index.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export * from "./postApiRoleCreate";
|
||||||
|
export * from "./deleteApiRoleDelete";
|
||||||
|
export * from "./getApiRoleList";
|
||||||
|
export * from "./postApiRolePermissionCheck";
|
||||||
|
export * from "./putApiRoleUpdate";
|
||||||
|
export * from "./getApiRoleView";
|
||||||
11
Frontend/src/api/controller/JiaoSe/postApiRoleCreate.ts
Normal file
11
Frontend/src/api/controller/JiaoSe/postApiRoleCreate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1RoleCreateRes, type DeepRequired, type TrangleAgentApiUserV1RoleCreateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建角色
|
||||||
|
* /api/role/create
|
||||||
|
*/
|
||||||
|
export function postApiRoleCreate(input?: TrangleAgentApiUserV1RoleCreateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiUserV1RoleCreateRes>>(`/api/role/create`, input, config);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1RolePermissionCheckRes, type DeepRequired, type TrangleAgentApiUserV1RolePermissionCheckReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检查角色权限
|
||||||
|
* /api/role/permission/check
|
||||||
|
*/
|
||||||
|
export function postApiRolePermissionCheck(input?: TrangleAgentApiUserV1RolePermissionCheckReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiUserV1RolePermissionCheckRes>>(`/api/role/permission/check`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/JiaoSe/putApiRoleUpdate.ts
Normal file
11
Frontend/src/api/controller/JiaoSe/putApiRoleUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1RoleUpdateRes, type DeepRequired, type TrangleAgentApiUserV1RoleUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新角色
|
||||||
|
* /api/role/update
|
||||||
|
*/
|
||||||
|
export function putApiRoleUpdate(input?: TrangleAgentApiUserV1RoleUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiUserV1RoleUpdateRes>>(`/api/role/update`, input, config);
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumCommentsDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除评论
|
||||||
|
* /api/forum/comments/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiForumCommentsDelete(params: DeleteApiForumCommentsDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiForumV1ForumCommentsDeleteRes>>(`/api/forum/comments/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiForumCommentsDeleteParams {
|
||||||
|
/** 评论ID */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumCommentsListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 评论列表
|
||||||
|
* /api/forum/comments/list
|
||||||
|
*/
|
||||||
|
export function getApiForumCommentsList(params: GetApiForumCommentsListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
userId: params.userId,
|
||||||
|
postId: params.postId,
|
||||||
|
parentId: params.parentId,
|
||||||
|
status: params.status,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiForumV1ForumCommentsListRes>>(`/api/forum/comments/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiForumCommentsListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 评论发布者ID */
|
||||||
|
userId?: number;
|
||||||
|
/** 所属帖子ID */
|
||||||
|
postId?: number;
|
||||||
|
/** 父评论ID */
|
||||||
|
parentId?: number;
|
||||||
|
/** 评论状态 */
|
||||||
|
status?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumCommentsViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查看评论
|
||||||
|
* /api/forum/comments/view
|
||||||
|
*/
|
||||||
|
export function getApiForumCommentsView(params: GetApiForumCommentsViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiForumV1ForumCommentsViewRes>>(`/api/forum/comments/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiForumCommentsViewParams {
|
||||||
|
/** 评论ID */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
5
Frontend/src/api/controller/LunTanPingLun/index.ts
Normal file
5
Frontend/src/api/controller/LunTanPingLun/index.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export * from "./postApiForumCommentsCreate";
|
||||||
|
export * from "./deleteApiForumCommentsDelete";
|
||||||
|
export * from "./getApiForumCommentsList";
|
||||||
|
export * from "./putApiForumCommentsUpdate";
|
||||||
|
export * from "./getApiForumCommentsView";
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumCommentsCreateRes, type DeepRequired, type TrangleAgentApiForumV1ForumCommentsCreateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建评论
|
||||||
|
* /api/forum/comments/create
|
||||||
|
*/
|
||||||
|
export function postApiForumCommentsCreate(input?: TrangleAgentApiForumV1ForumCommentsCreateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiForumV1ForumCommentsCreateRes>>(`/api/forum/comments/create`, input, config);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumCommentsUpdateRes, type DeepRequired, type TrangleAgentApiForumV1ForumCommentsUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新评论
|
||||||
|
* /api/forum/comments/update
|
||||||
|
*/
|
||||||
|
export function putApiForumCommentsUpdate(input?: TrangleAgentApiForumV1ForumCommentsUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiForumV1ForumCommentsUpdateRes>>(`/api/forum/comments/update`, input, config);
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumPostsDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除帖子
|
||||||
|
* /api/forum/posts/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiForumPostsDelete(params: DeleteApiForumPostsDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiForumV1ForumPostsDeleteRes>>(`/api/forum/posts/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiForumPostsDeleteParams {
|
||||||
|
/** 帖子ID */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumPostsListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 帖子列表
|
||||||
|
* /api/forum/posts/list
|
||||||
|
*/
|
||||||
|
export function getApiForumPostsList(params: GetApiForumPostsListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
userId: params.userId,
|
||||||
|
title: params.title,
|
||||||
|
status: params.status,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiForumV1ForumPostsListRes>>(`/api/forum/posts/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiForumPostsListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 发帖用户ID */
|
||||||
|
userId?: number;
|
||||||
|
/** 帖子标题 */
|
||||||
|
title?: string;
|
||||||
|
/** 帖子状态 */
|
||||||
|
status?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumPostsViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查看帖子
|
||||||
|
* /api/forum/posts/view
|
||||||
|
*/
|
||||||
|
export function getApiForumPostsView(params: GetApiForumPostsViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiForumV1ForumPostsViewRes>>(`/api/forum/posts/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiForumPostsViewParams {
|
||||||
|
/** 帖子ID */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
5
Frontend/src/api/controller/LunTanTieZi/index.ts
Normal file
5
Frontend/src/api/controller/LunTanTieZi/index.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export * from "./postApiForumPostsCreate";
|
||||||
|
export * from "./deleteApiForumPostsDelete";
|
||||||
|
export * from "./getApiForumPostsList";
|
||||||
|
export * from "./putApiForumPostsUpdate";
|
||||||
|
export * from "./getApiForumPostsView";
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumPostsCreateRes, type DeepRequired, type TrangleAgentApiForumV1ForumPostsCreateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建帖子
|
||||||
|
* /api/forum/posts/create
|
||||||
|
*/
|
||||||
|
export function postApiForumPostsCreate(input?: TrangleAgentApiForumV1ForumPostsCreateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiForumV1ForumPostsCreateRes>>(`/api/forum/posts/create`, input, config);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiForumV1ForumPostsUpdateRes, type DeepRequired, type TrangleAgentApiForumV1ForumPostsUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新帖子
|
||||||
|
* /api/forum/posts/update
|
||||||
|
*/
|
||||||
|
export function putApiForumPostsUpdate(input?: TrangleAgentApiForumV1ForumPostsUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiForumV1ForumPostsUpdateRes>>(`/api/forum/posts/update`, input, config);
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiContainmentV1ContainmentRepoDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收容库删除
|
||||||
|
* /api/containment/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiContainmentDelete(params: DeleteApiContainmentDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiContainmentV1ContainmentRepoDeleteRes>>(`/api/containment/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiContainmentDeleteParams {
|
||||||
|
/** primary key */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiContainmentV1ContainmentRepoListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收容库列表
|
||||||
|
* /api/containment/list
|
||||||
|
*/
|
||||||
|
export function getApiContainmentList(params: GetApiContainmentListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
terminalId: params.terminalId,
|
||||||
|
anomalyName: params.anomalyName,
|
||||||
|
agentName: params.agentName,
|
||||||
|
repoName: params.repoName,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiContainmentV1ContainmentRepoListRes>>(`/api/containment/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiContainmentListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** terminal (散逸端) */
|
||||||
|
terminalId?: number;
|
||||||
|
/** anomaly name */
|
||||||
|
anomalyName?: string;
|
||||||
|
/** agent name */
|
||||||
|
agentName?: string;
|
||||||
|
/** containment repo name */
|
||||||
|
repoName?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiContainmentV1ContainmentRepoViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收容库详情
|
||||||
|
* /api/containment/view
|
||||||
|
*/
|
||||||
|
export function getApiContainmentView(params: GetApiContainmentViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiContainmentV1ContainmentRepoViewRes>>(`/api/containment/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiContainmentViewParams {
|
||||||
|
/** primary key */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
4
Frontend/src/api/controller/ShouRongKu/index.ts
Normal file
4
Frontend/src/api/controller/ShouRongKu/index.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export * from "./deleteApiContainmentDelete";
|
||||||
|
export * from "./getApiContainmentList";
|
||||||
|
export * from "./postApiContainmentUpdate";
|
||||||
|
export * from "./getApiContainmentView";
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiContainmentV1ContainmentRepoUpdateRes, type DeepRequired, type TrangleAgentApiContainmentV1ContainmentRepoUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建或更新收容库
|
||||||
|
* /api/containment/update
|
||||||
|
*/
|
||||||
|
export function postApiContainmentUpdate(input?: TrangleAgentApiContainmentV1ContainmentRepoUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiContainmentV1ContainmentRepoUpdateRes>>(`/api/containment/update`, input, config);
|
||||||
|
}
|
||||||
22
Frontend/src/api/controller/YongHu/deleteApiUserDelete.ts
Normal file
22
Frontend/src/api/controller/YongHu/deleteApiUserDelete.ts
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1UserDeleteRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户
|
||||||
|
* /api/user/delete
|
||||||
|
*/
|
||||||
|
export function deleteApiUserDelete(params: DeleteApiUserDeleteParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
account: params.account,
|
||||||
|
};
|
||||||
|
return request.delete<DeepRequired<TrangleAgentApiUserV1UserDeleteRes>>(`/api/user/delete`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeleteApiUserDeleteParams {
|
||||||
|
/** 账号 */
|
||||||
|
account?: string;
|
||||||
|
}
|
||||||
31
Frontend/src/api/controller/YongHu/getApiUserList.ts
Normal file
31
Frontend/src/api/controller/YongHu/getApiUserList.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1UserListRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户列表
|
||||||
|
* /api/user/list
|
||||||
|
*/
|
||||||
|
export function getApiUserList(params: GetApiUserListParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
page: params.page,
|
||||||
|
pageSize: params.pageSize,
|
||||||
|
total: params.total,
|
||||||
|
account: params.account,
|
||||||
|
nickname: params.nickname,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1UserListRes>>(`/api/user/list`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiUserListParams {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 账号 */
|
||||||
|
account?: string;
|
||||||
|
/** 昵称 */
|
||||||
|
nickname?: string;
|
||||||
|
}
|
||||||
28
Frontend/src/api/controller/YongHu/getApiUserView.ts
Normal file
28
Frontend/src/api/controller/YongHu/getApiUserView.ts
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1UserViewRes, type DeepRequired } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户详情
|
||||||
|
* /api/user/view
|
||||||
|
*/
|
||||||
|
export function getApiUserView(params: GetApiUserViewParams, config?: AxiosRequestConfig) {
|
||||||
|
const paramsInput = {
|
||||||
|
account: params.account,
|
||||||
|
nickname: params.nickname,
|
||||||
|
id: params.id,
|
||||||
|
};
|
||||||
|
return request.get<DeepRequired<TrangleAgentApiUserV1UserViewRes>>(`/api/user/view`, {
|
||||||
|
params: paramsInput,
|
||||||
|
...config,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GetApiUserViewParams {
|
||||||
|
/** 账号 */
|
||||||
|
account?: string;
|
||||||
|
/** 昵称 */
|
||||||
|
nickname?: string;
|
||||||
|
/** 用户ID */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
4
Frontend/src/api/controller/YongHu/index.ts
Normal file
4
Frontend/src/api/controller/YongHu/index.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export * from "./deleteApiUserDelete";
|
||||||
|
export * from "./getApiUserList";
|
||||||
|
export * from "./putApiUserUpdate";
|
||||||
|
export * from "./getApiUserView";
|
||||||
11
Frontend/src/api/controller/YongHu/putApiUserUpdate.ts
Normal file
11
Frontend/src/api/controller/YongHu/putApiUserUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiUserV1UserUpdateRes, type DeepRequired, type TrangleAgentApiUserV1UserUpdateReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新用户
|
||||||
|
* /api/user/update
|
||||||
|
*/
|
||||||
|
export function putApiUserUpdate(input?: TrangleAgentApiUserV1UserUpdateReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.put<DeepRequired<TrangleAgentApiUserV1UserUpdateRes>>(`/api/user/update`, input, config);
|
||||||
|
}
|
||||||
1
Frontend/src/api/controller/YouXiang/index.ts
Normal file
1
Frontend/src/api/controller/YouXiang/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from "./postApiEmailSendCode";
|
||||||
11
Frontend/src/api/controller/YouXiang/postApiEmailSendCode.ts
Normal file
11
Frontend/src/api/controller/YouXiang/postApiEmailSendCode.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiLoginV1SendVerificationCodeRes, type DeepRequired, type TrangleAgentApiLoginV1SendVerificationCodeReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发送验证码
|
||||||
|
* /api/email/send-code
|
||||||
|
*/
|
||||||
|
export function postApiEmailSendCode(input?: TrangleAgentApiLoginV1SendVerificationCodeReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiLoginV1SendVerificationCodeRes>>(`/api/email/send-code`, input, config);
|
||||||
|
}
|
||||||
2
Frontend/src/api/controller/ZhuCe/index.ts
Normal file
2
Frontend/src/api/controller/ZhuCe/index.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export * from "./postApiRegister";
|
||||||
|
export * from "./postApiRegisterEmail";
|
||||||
11
Frontend/src/api/controller/ZhuCe/postApiRegister.ts
Normal file
11
Frontend/src/api/controller/ZhuCe/postApiRegister.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiLoginV1RegisterRes, type DeepRequired, type TrangleAgentApiLoginV1RegisterReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户注册
|
||||||
|
* /api/register
|
||||||
|
*/
|
||||||
|
export function postApiRegister(input?: TrangleAgentApiLoginV1RegisterReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiLoginV1RegisterRes>>(`/api/register`, input, config);
|
||||||
|
}
|
||||||
11
Frontend/src/api/controller/ZhuCe/postApiRegisterEmail.ts
Normal file
11
Frontend/src/api/controller/ZhuCe/postApiRegisterEmail.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import request from "./src/api/http.js";
|
||||||
|
import { type TrangleAgentApiLoginV1RegisterByEmailRes, type DeepRequired, type TrangleAgentApiLoginV1RegisterByEmailReq } from "../../interface";
|
||||||
|
import { type AxiosRequestConfig } from "axios";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户邮箱注册
|
||||||
|
* /api/register/email
|
||||||
|
*/
|
||||||
|
export function postApiRegisterEmail(input?: TrangleAgentApiLoginV1RegisterByEmailReq, config?: AxiosRequestConfig) {
|
||||||
|
return request.post<DeepRequired<TrangleAgentApiLoginV1RegisterByEmailRes>>(`/api/register/email`, input, config);
|
||||||
|
}
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
export * from "./Containment";
|
export * from "./ShouRongKu";
|
||||||
export * from "./Department";
|
export * from "./BuMen";
|
||||||
export * from "./Email";
|
export * from "./YouXiang";
|
||||||
export * from "./Fans";
|
export * from "./FenSi";
|
||||||
export * from "./Login";
|
export * from "./LunTanPingLun";
|
||||||
export * from "./Logout";
|
export * from "./LunTanTieZi";
|
||||||
export * from "./Register";
|
export * from "./DengLu";
|
||||||
export * from "./Role";
|
export * from "./DengChu";
|
||||||
export * from "./Room";
|
export * from "./ZhuCe";
|
||||||
export * from "./Subscribe";
|
export * from "./JiaoSe";
|
||||||
export * from "./Trace";
|
export * from "./FangJian";
|
||||||
export * from "./User";
|
export * from "./GuanZhu";
|
||||||
|
export * from "./GuiJi";
|
||||||
|
export * from "./YongHu";
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoDeleteReq {
|
||||||
|
/** primary key */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoDeleteRes {
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoListReq {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** terminal (散逸端) */
|
||||||
|
terminalId?: number;
|
||||||
|
/** anomaly name */
|
||||||
|
anomalyName?: string;
|
||||||
|
/** agent name */
|
||||||
|
agentName?: string;
|
||||||
|
/** containment repo name */
|
||||||
|
repoName?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { type TrangleAgentInternalModelContainmentRepo } from "../../interface";
|
||||||
|
|
||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoListRes {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
list?: TrangleAgentInternalModelContainmentRepo[];
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoUpdateReq {
|
||||||
|
/** primary key,大于0为修改,其他为新增 */
|
||||||
|
id?: number;
|
||||||
|
/** terminal (散逸端) */
|
||||||
|
terminalId?: number;
|
||||||
|
/** number of contained anomalies */
|
||||||
|
abnormal?: string;
|
||||||
|
/** anomaly name */
|
||||||
|
anomalyName?: string;
|
||||||
|
/** agent name */
|
||||||
|
agentName?: string;
|
||||||
|
/** containment repo name */
|
||||||
|
repoName?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoUpdateRes {
|
||||||
|
/** primary key */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoViewReq {
|
||||||
|
/** primary key */
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
export interface TrangleAgentApiContainmentV1ContainmentRepoViewRes {
|
||||||
|
/** primary key(大于0为修改,其他为新增) */
|
||||||
|
id?: number;
|
||||||
|
/** terminal (散逸端) */
|
||||||
|
terminalId?: number;
|
||||||
|
/** number of contained anomalies (收容异常的数量) */
|
||||||
|
abnormal?: string;
|
||||||
|
/** name of the anomaly (异常体的名字) */
|
||||||
|
anomalyName?: string;
|
||||||
|
/** agent (特工) */
|
||||||
|
agentName?: string;
|
||||||
|
/** containment repository name or code (收容库) */
|
||||||
|
repoName?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1Department {
|
||||||
|
/** 自增主键 */
|
||||||
|
id?: number;
|
||||||
|
/** 所属用户ID(对应 users.id) */
|
||||||
|
userId?: number;
|
||||||
|
/** 分部名称 */
|
||||||
|
branchName?: string;
|
||||||
|
/** 分部散逸端的数量 */
|
||||||
|
terminalCount?: number;
|
||||||
|
/** 分部当前天气/气候描述 */
|
||||||
|
weather?: string;
|
||||||
|
/** 分部经理名称 */
|
||||||
|
managerName?: string;
|
||||||
|
/** 分部地址 */
|
||||||
|
location?: string;
|
||||||
|
/** 创建时间 */
|
||||||
|
createdAt?: string;
|
||||||
|
/** 更新时间 */
|
||||||
|
updatedAt?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentCreateReq {
|
||||||
|
userId: number;
|
||||||
|
branchName: string;
|
||||||
|
/** 分部散逸端的数量 */
|
||||||
|
terminalCount?: number;
|
||||||
|
/** 分部当前天气/气候描述 */
|
||||||
|
weather?: string;
|
||||||
|
/** 分部经理名称 */
|
||||||
|
managerName?: string;
|
||||||
|
/** 分部地址 */
|
||||||
|
location?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentCreateRes {
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentDeleteReq {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentDeleteRes {
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentListReq {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
/** 分部名称 */
|
||||||
|
branchName?: string;
|
||||||
|
/** 分部经理名称 */
|
||||||
|
managerName?: string;
|
||||||
|
/** 所属用户ID */
|
||||||
|
userId?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { type TrangleAgentApiDepartmentV1Department } from "../../interface";
|
||||||
|
|
||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentListRes {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
|
total?: number;
|
||||||
|
list?: TrangleAgentApiDepartmentV1Department[];
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentUpdateReq {
|
||||||
|
id: number;
|
||||||
|
userId: number;
|
||||||
|
branchName: string;
|
||||||
|
/** 分部散逸端的数量 */
|
||||||
|
terminalCount?: number;
|
||||||
|
/** 分部地址 */
|
||||||
|
location?: string;
|
||||||
|
/** 分部当前天气/气候描述 */
|
||||||
|
weather?: string;
|
||||||
|
/** 分部经理名称 */
|
||||||
|
managerName?: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentUpdateRes {
|
||||||
|
id?: number;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export interface TrangleAgentApiDepartmentV1DepartmentViewReq {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user