feat: 添加店铺邀请列表查询接口并修复 responded_at 未写入

This commit is contained in:
zetaloop
2026-04-23 15:54:12 +08:00
parent d596d41e1a
commit 83a2f243f4
9 changed files with 300 additions and 13 deletions
+12
View File
@@ -75,6 +75,12 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/shops/:id/invitations",
Handler: shop.InvitePlayerHandler(serverCtx),
},
{
// 获取店铺邀请列表
Method: http.MethodGet,
Path: "/shops/:id/invitations",
Handler: shop.ListShopInvitationsHandler(serverCtx),
},
{
// 移除打手
Method: http.MethodDelete,
@@ -99,6 +105,12 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/shops/invitations/:id/accept",
Handler: shop.AcceptInvitationHandler(serverCtx),
},
{
// 获取我收到的邀请
Method: http.MethodGet,
Path: "/shops/invitations/mine",
Handler: shop.MyInvitationsHandler(serverCtx),
},
{
// 获取当前用户的店铺
Method: http.MethodGet,