feat(api): 开发auth、login等接口,规范格式化

This commit is contained in:
R524809
2026-09-03 13:11:06 +08:00
parent 195b6d25e9
commit 037928c778
82 changed files with 9199 additions and 5236 deletions
@@ -0,0 +1,17 @@
-- Global reference data required by the initial authenticated application shell.
SET search_path TO atlas, public;
INSERT INTO currencies (code, name, symbol, decimal_places)
VALUES ('CNY', 'Chinese Yuan', '¥', 2), ('RUB', 'Russian Ruble', '₽', 2)
ON CONFLICT (code) DO NOTHING;
INSERT INTO platforms (code, name)
VALUES ('OZON', 'Ozon')
ON CONFLICT (code) DO NOTHING;
INSERT INTO platform_currency_support (platform_id, currency_code)
SELECT id, currency_code
FROM platforms
CROSS JOIN (VALUES ('RUB'::CHAR(3))) AS supported(currency_code)
WHERE code = 'OZON'
ON CONFLICT (platform_id, currency_code) DO NOTHING;