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 { enum Api {
GetById = '/api/my-notifilers/{id}', GetById = '/api/my-notifilers/{id}',
GetList = '/api/my-notifilers', GetList = '/api/my-notifilers',
GetAssignableNotifiers = '/api/my-notifilers/assignables', GetAssignableNotifiers = '/api/notifilers/assignables',
Read = '/api/my-notifilers/{id}/read', Read = '/api/my-notifilers/{id}/read',
MarkReadState = '/api/my-notifilers/mark-read-state', 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>({ return defHttp.put<void>({
url: Api.MarkReadState, url: Api.MarkReadState,
data: { data: {

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

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

Loading…
Cancel
Save