feat: 添加店铺邀请列表查询接口并修复 responded_at 未写入
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user