import GoodBranchService from '../src/GoodBrandService' import Global4Service from '../src/Global4Service' import IMachineGetListRequest from '../src/interfaces/machine/IMachineGetListReqeust' import IGoodBrandGetListRequest from '../src/interfaces/goods/IGoodBrandGetListRequest'; const { describe, it } = require('mocha'); describe('测试GoodBrandService[class]-getList[func]', async function(){ it('post正常测试', async function(){ // 参数 Global4Service.token = '1b6fcfcf-bd57-4cf6-a1ff-a9d80101d5c4_10439233-f61d-4500-81a7-a9f901208413'; let request: IGoodBrandGetListRequest = { }; let service = new GoodBranchService(); let res = await service.getList(request); console.log(res.data!.GoodBrands[0].BindBusiness); }); });