feat(order-service): 支持自定义订单状态节点文案

This commit is contained in:
yml2213
2026-11-04 13:04:52 +08:00
parent 4a7cc2c6fe
commit 3969703ac8
12 changed files with 226 additions and 12 deletions
@@ -13,6 +13,7 @@ export type OrderServiceProfileRow = {
screenshots_json: Record<string, unknown>
auto_publish_json: Record<string, unknown>
material_confirmation_json: Record<string, unknown>
status_steps_json: Record<string, unknown>
submit_text: string
success_text: string
post_submit_text: string
@@ -101,6 +102,7 @@ export async function upsertOrderServiceProfile(input: {
screenshots: Record<string, unknown>
autoPublish: Record<string, unknown>
materialConfirmation: Record<string, unknown>
statusSteps: Record<string, unknown>
submitText: string
successText: string
postSubmitText: string
@@ -111,12 +113,12 @@ export async function upsertOrderServiceProfile(input: {
INSERT INTO order_service_profiles (
category_id, name, title, description,
guide_image_json, fields_json, screenshots_json, auto_publish_json,
material_confirmation_json,
material_confirmation_json, status_steps_json,
submit_text, success_text, post_submit_text, status, created_by_admin_user_id
) VALUES (
$1, $2, $3, $4,
$5::jsonb, $6::jsonb, $7::jsonb, $8::jsonb, $9::jsonb,
$10, $11, $12, 'draft', $13
$5::jsonb, $6::jsonb, $7::jsonb, $8::jsonb, $9::jsonb, $10::jsonb,
$11, $12, $13, 'draft', $14
)
ON CONFLICT (category_id) DO UPDATE SET
name = EXCLUDED.name,
@@ -127,6 +129,7 @@ export async function upsertOrderServiceProfile(input: {
screenshots_json = EXCLUDED.screenshots_json,
auto_publish_json = EXCLUDED.auto_publish_json,
material_confirmation_json = EXCLUDED.material_confirmation_json,
status_steps_json = EXCLUDED.status_steps_json,
submit_text = EXCLUDED.submit_text,
success_text = EXCLUDED.success_text,
post_submit_text = EXCLUDED.post_submit_text,
@@ -148,6 +151,7 @@ export async function upsertOrderServiceProfile(input: {
JSON.stringify(input.screenshots),
JSON.stringify(input.autoPublish),
JSON.stringify(input.materialConfirmation),
JSON.stringify(input.statusSteps),
input.submitText,
input.successText,
input.postSubmitText,