Browse Source
Merge pull request #680 from colinin/Fix-Assignables-Notifications
fix: assignables notifications route
pull/712/head
yx lin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
9 deletions
-
apps/vue/src/api/messages/notifications.ts
-
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json
|
|
|
@ -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: { |
|
|
|
|
|
|
|
@ -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", |
|
|
|
|