feat(partner): complete proxy order with dual SMS and pickup
CI / verify (pull_request) Has been cancelled
CI / verify (pull_request) Has been cancelled
Add partner/customer SMS confirm, address auto-receive or on-site pickup, proxy placer fields, PARTNER_PROXY user source, and C-end badge. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9,7 +9,7 @@ import { CurrentUser } from '../../common/decorators/current-user.decorator';
|
||||
import {
|
||||
PartnerProxyOrderCreateDto,
|
||||
PartnerProxyOrderPreviewDto,
|
||||
PartnerProxyOrderSendSmsDto,
|
||||
PartnerProxyOrderSendCustomerSmsDto,
|
||||
} from './dto/partner-proxy-order.dto';
|
||||
import { ManualShipOrderDto } from '../ops/dto/admin-mutate.dto';
|
||||
import { CreateAfterSaleTicketDto, CreateInvoiceDto } from './dto/after-sale.dto';
|
||||
@@ -204,8 +204,8 @@ export class PartnerProxyOrderController {
|
||||
constructor(private readonly tradeService: TradeService) {}
|
||||
|
||||
@Get('options')
|
||||
options() {
|
||||
return this.tradeService.getPartnerProxyOrderOptions();
|
||||
options(@CurrentUser() user: AuthUser) {
|
||||
return this.tradeService.getPartnerProxyOrderOptions(user.actorId);
|
||||
}
|
||||
|
||||
@Post('preview')
|
||||
@@ -213,9 +213,20 @@ export class PartnerProxyOrderController {
|
||||
return this.tradeService.previewPartnerProxyOrder(dto);
|
||||
}
|
||||
|
||||
/** @deprecated 兼容:转发客户短信 */
|
||||
@Post('send-sms')
|
||||
sendSms(@Body() dto: PartnerProxyOrderSendSmsDto) {
|
||||
return this.tradeService.sendPartnerProxyOrderSms(dto.phone);
|
||||
sendSms(@Body() dto: PartnerProxyOrderSendCustomerSmsDto) {
|
||||
return this.tradeService.sendPartnerProxyCustomerSms(dto.phone);
|
||||
}
|
||||
|
||||
@Post('send-customer-sms')
|
||||
sendCustomerSms(@Body() dto: PartnerProxyOrderSendCustomerSmsDto) {
|
||||
return this.tradeService.sendPartnerProxyCustomerSms(dto.phone);
|
||||
}
|
||||
|
||||
@Post('send-partner-sms')
|
||||
sendPartnerSms(@CurrentUser() user: AuthUser) {
|
||||
return this.tradeService.sendPartnerProxyPartnerSms(user.actorId);
|
||||
}
|
||||
|
||||
@Post()
|
||||
|
||||
Reference in New Issue
Block a user