Browse Source

fix: assignables notifications route

pull/680/head
cKey 3 years ago
parent
commit
d6909c674d
  1. 7
      apps/vue/src/api/messages/notifications.ts
  2. 12
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json

7
apps/vue/src/api/messages/notifications.ts

@ -10,12 +10,15 @@ import { format } from '/@/utils/strings';
enum Api {
GetById = '/api/my-notifilers/{id}',
GetList = '/api/my-notifilers',
GetAssignableNotifiers = '/api/my-notifilers/assignables',
GetAssignableNotifiers = '/api/notifilers/assignables',
Read = '/api/my-notifilers/{id}/read',
MarkReadState = '/api/my-notifilers/mark-read-state',
}
export const markReadState = (ids: string[], state: NotificationReadState = NotificationReadState.Read) => {
export const markReadState = (
ids: string[],
state: NotificationReadState = NotificationReadState.Read,
) => {
return defHttp.put<void>({
url: Api.MarkReadState,
data: {

12
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json

@ -1320,7 +1320,7 @@
"Key": "my-subscribes"
},
{
"DownstreamPathTemplate": "/api/my-notifilers/assignables",
"DownstreamPathTemplate": "/api/notifilers/{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -1328,9 +1328,10 @@
"Port": 30020
}
],
"UpstreamPathTemplate": "/api/my-notifilers/assignables",
"UpstreamPathTemplate": "/api/notifilers/{everything}",
"UpstreamHttpMethod": [
"GET"
"GET",
"POST"
],
"LoadBalancerOptions": {
"Type": "RoundRobin"
@ -1349,9 +1350,7 @@
},
"HttpHandlerOptions": {
"UseTracing": true
},
"Priority": 99,
"Key": "assignables-notifilers"
}
},
{
"DownstreamPathTemplate": "/api/my-notifilers",
@ -2062,7 +2061,6 @@
},
{
"RouteKeys": [
"assignables-notifilers",
"my-subscribes"
],
"UpstreamPathTemplate": "/api/my-subscribes/assignables-notifilers",

Loading…
Cancel
Save