feat(partner): let staff manage stores and fix env photo dupes
CI / verify (pull_request) Has been cancelled

Allow store:create/manage sub-accounts to edit, open/close, and re-upload media; dedupe ENV photos on write/read and replace via media API.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 10:36:29 +08:00
parent 14b867a3a5
commit de396442a4
6 changed files with 357 additions and 40 deletions
@@ -75,6 +75,15 @@ export class PartnerStoreController {
) {
return this.storeService.partnerUpdateStoreBasic(user.actorId, BigInt(id), body);
}
@Put(':id/media')
updateMedia(
@CurrentUser() user: AuthUser,
@Param('id') id: string,
@Body() body: Record<string, unknown>,
) {
return this.storeService.partnerUpdateStoreMedia(user.actorId, BigInt(id), body);
}
}
@Controller('partner/dashboard')