|
|
@@ -227,7 +227,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
const merchantRepository = dataSource.getRepository(Merchant);
|
|
|
const otherUserMerchant = merchantRepository.create({
|
|
|
name: '其他用户商户',
|
|
|
- username: `other_merchant_${Date.now()}`,
|
|
|
+ username: `om_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138001',
|
|
|
realname: '李四',
|
|
|
@@ -269,7 +269,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
const merchantRepository = dataSource.getRepository(Merchant);
|
|
|
const testMerchant = merchantRepository.create({
|
|
|
name: '原始商户',
|
|
|
- username: `original_merchant_${Date.now()}`,
|
|
|
+ username: `om_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138000',
|
|
|
realname: '原始姓名',
|
|
|
@@ -312,7 +312,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
const merchantRepository = dataSource.getRepository(Merchant);
|
|
|
const otherUserMerchant = merchantRepository.create({
|
|
|
name: '其他用户商户',
|
|
|
- username: `other_merchant_${Date.now()}`,
|
|
|
+ username: `om_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138001',
|
|
|
realname: '李四',
|
|
|
@@ -349,7 +349,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
const merchantRepository = dataSource.getRepository(Merchant);
|
|
|
const testMerchant = merchantRepository.create({
|
|
|
name: '待删除商户',
|
|
|
- username: `delete_merchant_${Date.now()}`,
|
|
|
+ username: `dm_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138000',
|
|
|
realname: '张三',
|
|
|
@@ -382,7 +382,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
const merchantRepository = dataSource.getRepository(Merchant);
|
|
|
const otherUserMerchant = merchantRepository.create({
|
|
|
name: '其他用户商户',
|
|
|
- username: `other_merchant_${Date.now()}`,
|
|
|
+ username: `om_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138001',
|
|
|
realname: '李四',
|
|
|
@@ -413,7 +413,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
|
|
|
const userMerchant = merchantRepository.create({
|
|
|
name: '用户商户',
|
|
|
- username: `user_merchant_${Date.now()}`,
|
|
|
+ username: `um_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138004',
|
|
|
realname: '张三',
|
|
|
@@ -424,7 +424,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
|
|
|
const otherUserMerchant = merchantRepository.create({
|
|
|
name: '其他用户商户',
|
|
|
- username: `other_merchant_${Date.now()}`,
|
|
|
+ username: `om_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138005',
|
|
|
realname: '李四',
|
|
|
@@ -490,7 +490,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
// 创建启用状态的商户
|
|
|
const createData = {
|
|
|
name: '状态测试商户',
|
|
|
- username: `state_test_merchant_${Date.now()}`,
|
|
|
+ username: `stm_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138006',
|
|
|
realname: '状态测试',
|
|
|
@@ -530,7 +530,7 @@ describe('用户商户管理API集成测试', () => {
|
|
|
// 创建商户
|
|
|
const createData = {
|
|
|
name: '登录统计商户',
|
|
|
- username: `login_stat_merchant_${Date.now()}`,
|
|
|
+ username: `lsm_${Date.now()}`,
|
|
|
password: 'password123',
|
|
|
phone: '13800138007',
|
|
|
realname: '登录统计',
|