门店开通流程
This commit is contained in:
@@ -29,10 +29,38 @@ export class PartnerStoreController {
|
||||
return this.storeService.partnerListStores(user.actorId);
|
||||
}
|
||||
|
||||
@Get('cities')
|
||||
cities(@CurrentUser() user: AuthUser) {
|
||||
return this.storeService.partnerListCities(user.actorId);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
detail(@CurrentUser() user: AuthUser, @Param('id') id: string) {
|
||||
return this.storeService.partnerGetStore(user.actorId, BigInt(id));
|
||||
}
|
||||
|
||||
@Post()
|
||||
create(@CurrentUser() user: AuthUser, @Body() body: Record<string, unknown>) {
|
||||
return this.storeService.createStore(user.actorId, body);
|
||||
}
|
||||
|
||||
@Put(':id/status')
|
||||
updateStatus(
|
||||
@CurrentUser() user: AuthUser,
|
||||
@Param('id') id: string,
|
||||
@Body() body: { status: 'OPEN' | 'PAUSED' | 'CLOSED' },
|
||||
) {
|
||||
return this.storeService.partnerUpdateStoreStatus(user.actorId, BigInt(id), body.status);
|
||||
}
|
||||
|
||||
@Put(':id/basic')
|
||||
updateBasic(
|
||||
@CurrentUser() user: AuthUser,
|
||||
@Param('id') id: string,
|
||||
@Body() body: Record<string, unknown>,
|
||||
) {
|
||||
return this.storeService.partnerUpdateStoreBasic(user.actorId, BigInt(id), body);
|
||||
}
|
||||
}
|
||||
|
||||
@Controller('partner/dashboard')
|
||||
|
||||
Reference in New Issue
Block a user