Skip to content

Commit d547078

Browse files
authored
[INLONG-3275][Dashboard] Change the request method of list query from GET to POST (#3278)
1 parent 3961e9d commit d547078

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

inlong-dashboard/src/components/ConsumeHelper/BusinessSelect/MyBusinessModal.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const Comp: React.FC<MyAccessModalProps> = ({ ...modalProps }) => {
4747
const { run: getData, data, loading } = useRequest(
4848
{
4949
url: '/group/list',
50-
params: {
50+
method: 'POST',
51+
data: {
5152
...options,
5253
status: 130,
5354
},

inlong-dashboard/src/pages/AccessCreate/DataStream/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ const Comp = ({ inlongGroupId, middlewareType }: Props, ref) => {
4646
useRequest(
4747
{
4848
url: '/stream/listAll',
49-
params: {
49+
method: 'POST',
50+
data: {
5051
pageSize: 100,
5152
pageNum: 1,
5253
inlongGroupId,

inlong-dashboard/src/pages/AccessDashboard/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ const Comp: React.FC = () => {
5151
const { data, loading, run: getList } = useRequest(
5252
{
5353
url: '/group/list',
54-
params: options,
54+
method: 'POST',
55+
data: options,
5556
},
5657
{
5758
refreshDeps: [options],

inlong-dashboard/src/pages/AccessDetail/Audit/config.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr
8787
requestAuto: true,
8888
requestService: {
8989
url: '/stream/list',
90-
params: {
90+
method: 'POST',
91+
data: {
9192
pageNum: 1,
9293
pageSize: 1000,
9394
inlongGroupId,

inlong-dashboard/src/pages/AccessDetail/DataSources/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ const Comp: React.FC<Props> = ({ inlongGroupId }) => {
187187
options: {
188188
requestService: {
189189
url: '/stream/list',
190-
params: {
190+
method: 'POST',
191+
data: {
191192
pageNum: 1,
192193
pageSize: 1000,
193194
inlongGroupId,

inlong-dashboard/src/pages/AccessDetail/DataStorage/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const Comp: React.FC<Props> = ({ inlongGroupId }) => {
8888
const { data: streamList = [] } = useRequest(
8989
{
9090
url: '/stream/list',
91+
method: 'POST',
9192
params: {
9293
pageNum: 1,
9394
pageSize: 1000,

inlong-dashboard/src/pages/AccessDetail/DataStream/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const Comp: React.FC<Props> = ({ inlongGroupId, readonly, middlewareType }) => {
6666
const { data = realTimeValues, run: getList, mutate } = useRequest(
6767
{
6868
url: '/stream/listAll',
69-
params: {
69+
method: 'POST',
70+
data: {
7071
...options,
7172
inlongGroupId,
7273
},
@@ -162,7 +163,7 @@ const Comp: React.FC<Props> = ({ inlongGroupId, readonly, middlewareType }) => {
162163
url: '/stream/delete',
163164
method: 'DELETE',
164165
params: {
165-
inlongGroupId,
166+
groupId: inlongGroupId,
166167
streamId: record?.inlongStreamId,
167168
},
168169
});

0 commit comments

Comments
 (0)