fix: 支持0参数方法的参数匹配
🐛 Bug: 0参数方法返回null,导致回退到旧逻辑 ✅ 修复: - serviceParams !== null (而不是 length > 0) - 0参数方法返回空字符串 '' - getLocalAddonList() ✅ 不再错误地传参 📊 预期效果: 修复0参数方法调用
This commit is contained in:
@@ -602,8 +602,11 @@ ${methodBody}
|
||||
// 尝试从Service文件读取方法签名
|
||||
const serviceParams = this.readServiceMethodSignature(method, javaController);
|
||||
|
||||
if (serviceParams && serviceParams.length > 0) {
|
||||
// 成功读取到Service签名,智能映射参数
|
||||
if (serviceParams !== null) {
|
||||
// 成功读取到Service签名(包括0参数的情况)
|
||||
if (serviceParams.length === 0) {
|
||||
return ''; // 无参数方法
|
||||
}
|
||||
return this.mapServiceParametersToController(serviceParams, method);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ export class AddonDevelopController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopServiceImplService.list(body);
|
||||
const result = await this.addonDevelopServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ export class AddonDevelopController {
|
||||
@ApiOperation({ summary: '/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getKey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonDevelopServiceImplService.info(key);
|
||||
const result = await this.addonDevelopServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export class AddonDevelopController {
|
||||
@ApiOperation({ summary: '/check/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCheckkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.checkKey(key);
|
||||
const result = await this.niucloudServiceImplService.checkKey(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class AddonLogController {
|
||||
@ApiOperation({ summary: '/detail' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDetail(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonLogServiceImplService.detail(id);
|
||||
const result = await this.addonLogServiceImplService.detail(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class AddonLogController {
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonLogServiceImplService.del(id);
|
||||
const result = await this.addonLogServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class AddonController {
|
||||
@ApiOperation({ summary: '/addon/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddonlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.list(body, body);
|
||||
const result = await this.addonServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export class AddonController {
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
@Public()
|
||||
async getAddonlistinstall(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.info(id);
|
||||
const result = await this.addonServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export class AddonController {
|
||||
@ApiOperation({ summary: '/addon/:id' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddonid(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.info(id);
|
||||
const result = await this.addonServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export class AddonController {
|
||||
@ApiOperation({ summary: '/addon/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postAddondel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.del(id);
|
||||
const result = await this.addonServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ export class AddonController {
|
||||
@ApiOperation({ summary: '/addon/cloudinstall/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddoncloudinstalladdon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.cloudInstallLog(addon);
|
||||
const result = await this.addonServiceImplService.cloudInstallLog(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ export class AddonController {
|
||||
@ApiOperation({ summary: '/addon/install/check/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddoninstallcheckaddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.installCheck(addon);
|
||||
const result = await this.addonServiceImplService.installCheck(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ export class AddonController {
|
||||
@ApiOperation({ summary: '/addon/uninstall/check/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAddonuninstallcheckaddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.addonServiceImplService.uninstallCheck(addon);
|
||||
const result = await this.addonServiceImplService.uninstallCheck(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export class BackupController {
|
||||
@ApiOperation({ summary: '/remark' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putRemark(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysBackupRecordsServiceImplService.edit(id, body);
|
||||
const result = await this.sysBackupRecordsServiceImplService.edit(query, body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export class AuthController {
|
||||
@ApiOperation({ summary: '/site' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSite(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.info(id);
|
||||
const result = await this.siteServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export class AppController {
|
||||
@ApiOperation({ summary: '/version' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getVersion(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.getVersionPage(body, body);
|
||||
const result = await this.adminAppServiceImplService.getVersionPage(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ export class AppController {
|
||||
@ApiOperation({ summary: '/build/log/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBuildlogkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.adminAppServiceImplService.getBuildLog(key);
|
||||
const result = await this.adminAppServiceImplService.getBuildLog(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class H5Controller {
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreH5ServiceImplService.getH5(siteId);
|
||||
const result = await this.coreH5ServiceImplService.getH5(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class PcController {
|
||||
@ApiOperation({ summary: '/config' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getConfig(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.corePcServiceImplService.getPc(siteId);
|
||||
const result = await this.corePcServiceImplService.getPc(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class DictController {
|
||||
@ApiOperation({ summary: '/dict' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDict(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.info(id);
|
||||
const result = await this.dictServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export class DictController {
|
||||
@ApiOperation({ summary: 'dictionary/type/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDictionarytypetype(@Param('type') type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.dictServiceImplService.info(id);
|
||||
const result = await this.dictServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getForm(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getPage(body, body);
|
||||
const result = await this.diyFormServiceImplService.getPage(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getList(body);
|
||||
const result = await this.diyFormServiceImplService.getList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getForminit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getInit(body);
|
||||
const result = await this.diyFormServiceImplService.getInit(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/template' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormtemplate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.modifyShare(formId, query);
|
||||
const result = await this.diyFormServiceImplService.modifyShare(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/share' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putFormshare(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.modifyShare(formId, query);
|
||||
const result = await this.diyFormServiceImplService.modifyShare(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/copy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postFormcopy(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.copy(formId);
|
||||
const result = await this.diyFormServiceImplService.copy(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/records' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecords(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getRecordPages(body, body);
|
||||
const result = await this.diyFormServiceImplService.getRecordPages(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/records/{records_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecordsrecordsid(@Param('records_id') records_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getRecordInfo(recordId);
|
||||
const result = await this.diyFormServiceImplService.getRecordInfo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/records/delete' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteFormrecordsdelete(): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.delRecord(formId, recordId);
|
||||
const result = await this.diyFormServiceImplService.delRecord(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/fields/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormfieldslist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormServiceImplService.getFieldsList(body);
|
||||
const result = await this.diyFormServiceImplService.getFieldsList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/write/{form_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormwriteformid(@Param('form_id') form_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormConfigServiceImplService.getWriteConfig(formId);
|
||||
const result = await this.diyFormConfigServiceImplService.getWriteConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/submit/{form_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormsubmitformid(@Param('form_id') form_id: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormConfigServiceImplService.getSubmitConfig(formId);
|
||||
const result = await this.diyFormConfigServiceImplService.getSubmitConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/records/member/stat' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecordsmemberstat(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormRecordsServiceImplService.getPage(body, body);
|
||||
const result = await this.diyFormRecordsServiceImplService.getPage(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ export class DiyFormController {
|
||||
@ApiOperation({ summary: '/form/records/field/stat' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getFormrecordsfieldstat(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyFormRecordsServiceImplService.getFieldStatList(body);
|
||||
const result = await this.diyFormRecordsServiceImplService.getFieldStatList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export class DiyRouteController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyRouteServiceImplService.list(body);
|
||||
const result = await this.diyRouteServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export class DiyThemeController {
|
||||
@ApiOperation({ summary: '/color' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getColor(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyThemeServiceImplService.getDefaultThemeColor(body);
|
||||
const result = await this.diyThemeServiceImplService.getDefaultThemeColor(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/diy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDiy(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.list(body, body);
|
||||
const result = await this.diyServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.allList(body);
|
||||
const result = await this.diyServiceImplService.allList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getPageInit(body);
|
||||
const result = await this.diyServiceImplService.getPageInit(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/template' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getTemplate(body);
|
||||
const result = await this.diyServiceImplService.getTemplate(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/decorate' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getDecorate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getDecoratePage(body);
|
||||
const result = await this.diyServiceImplService.getDecoratePage(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/carousel_search' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCarouselsearch(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getPageByCarouselSearch(body);
|
||||
const result = await this.diyServiceImplService.getPageByCarouselSearch(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/copy' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postCopy(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.copy(id);
|
||||
const result = await this.diyServiceImplService.copy(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ export class DiyController {
|
||||
@ApiOperation({ summary: '/page_link' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPagelink(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.diyServiceImplService.getPageLink(body);
|
||||
const result = await this.diyServiceImplService.getPageLink(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ export class GenerateController {
|
||||
@ApiOperation({ summary: '/generator' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postGenerator(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.edit(id, body);
|
||||
const result = await this.generateServiceImplService.edit(query, body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ export class GenerateController {
|
||||
@ApiOperation({ summary: '/table' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTable(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.generateServiceImplService.preview(id);
|
||||
const result = await this.generateServiceImplService.preview(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export class CaptchaController {
|
||||
@ApiOperation({ summary: '/check' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCheck(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreCaptchaImgServiceImplService.check(body);
|
||||
const result = await this.coreCaptchaImgServiceImplService.check(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ export class LoginController {
|
||||
@ApiOperation({ summary: '/{appType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppType(@Param('appType') appType: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.loginServiceImplService.login(body);
|
||||
const result = await this.loginServiceImplService.login(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/point' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getPoint(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(body, body);
|
||||
const result = await this.memberAccountServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/balance' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getBalance(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(body, body);
|
||||
const result = await this.memberAccountServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/money' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMoney(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(body, body);
|
||||
const result = await this.memberAccountServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/growth' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getGrowth(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(body, body);
|
||||
const result = await this.memberAccountServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/commission' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCommission(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.list(body, body);
|
||||
const result = await this.memberAccountServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/sum_commission' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSumcommission(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.sumCommission(body);
|
||||
const result = await this.memberAccountServiceImplService.sumCommission(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/sum_point' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSumpoint(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.sumPoint(body);
|
||||
const result = await this.memberAccountServiceImplService.sumPoint(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ export class MemberAccountController {
|
||||
@ApiOperation({ summary: '/sum_balance' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSumbalance(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAccountServiceImplService.sumBalance(body);
|
||||
const result = await this.memberAccountServiceImplService.sumBalance(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class MemberAddressController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberAddressServiceImplService.list(body);
|
||||
const result = await this.memberAddressServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class MemberCashOutController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberCashOutServiceImplService.pages(body, body);
|
||||
const result = await this.memberCashOutServiceImplService.pages(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class MemberLabelController {
|
||||
@ApiOperation({ summary: '/label' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLabel(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLabelServiceImplService.list(body, body);
|
||||
const result = await this.memberLabelServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class MemberLevelController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberLevelServiceImplService.list(body, body);
|
||||
const result = await this.memberLevelServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class MemberSignController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberSignServiceImplService.pages(body, body);
|
||||
const result = await this.memberSignServiceImplService.pages(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class MemberController {
|
||||
@ApiOperation({ summary: '/member' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMember(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.all(body);
|
||||
const result = await this.memberServiceImplService.all(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class MemberController {
|
||||
@ApiOperation({ summary: '/member/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMemberlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.all(body);
|
||||
const result = await this.memberServiceImplService.all(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class MemberController {
|
||||
@ApiOperation({ summary: '/member/{member_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putMembermemberid(@Body() body: Record<string, any>, @Param('member_id') member_id: string): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.edit(id, body);
|
||||
const result = await this.memberServiceImplService.edit(query, body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ export class MemberController {
|
||||
@ApiOperation({ summary: '/member/{member_id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteMembermemberid(@Param('member_id') member_id: string): Promise<Result<any>> {
|
||||
const result = await this.memberServiceImplService.del(id);
|
||||
const result = await this.memberServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ export class ModuleController {
|
||||
@ApiOperation({ summary: '/app_version/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppversionlist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.niucloudServiceImplService.getAppVersionList(body);
|
||||
const result = await this.niucloudServiceImplService.getAppVersionList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class NoticeController {
|
||||
@ApiOperation({ summary: '/notice/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getNoticekey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.noticeServiceImplService.getInfo(key);
|
||||
const result = await this.noticeServiceImplService.getInfo(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ export class PayChannelController {
|
||||
@ApiOperation({ summary: '/channel/lists/{channel}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getChannellistschannel(@Param('channel') channel: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payChannelServiceImplService.getListByChannel(channel);
|
||||
const result = await this.payChannelServiceImplService.getListByChannel(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class PayRefundController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payRefundServiceImplService.list(body, body);
|
||||
const result = await this.payRefundServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export class PayRefundController {
|
||||
@ApiOperation({ summary: '/type' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getType(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payRefundServiceImplService.transfer(body);
|
||||
const result = await this.payRefundServiceImplService.transfer(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class PayController {
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.info(id);
|
||||
const result = await this.payServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class PayController {
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.edit(id, body);
|
||||
const result = await this.payServiceImplService.edit(query, body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class PayController {
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.payServiceImplService.del(id);
|
||||
const result = await this.payServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ export class SiteGroupController {
|
||||
@ApiOperation({ summary: '/user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUser(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteGroupServiceImplService.getUserSiteGroupAll(uid);
|
||||
const result = await this.siteGroupServiceImplService.getUserSiteGroupAll(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ export class SiteController {
|
||||
@ApiOperation({ summary: '/closesite/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putClosesiteid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.closeSite(siteId);
|
||||
const result = await this.siteServiceImplService.closeSite(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ export class SiteController {
|
||||
@ApiOperation({ summary: '/opensite/{id}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putOpensiteid(@Body() body: Record<string, any>, @Param('id') id: string): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.openSite(siteId);
|
||||
const result = await this.siteServiceImplService.openSite(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ export class SiteController {
|
||||
@ApiOperation({ summary: '/captcha/create' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getCaptchacreate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.siteInit(siteId);
|
||||
const result = await this.siteServiceImplService.siteInit(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ export class SiteController {
|
||||
@ApiOperation({ summary: '/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postInit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteServiceImplService.siteInit(siteId);
|
||||
const result = await this.siteServiceImplService.siteInit(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class UserController {
|
||||
@ApiOperation({ summary: 'user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUser(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.siteUserServiceImplService.list(body, body);
|
||||
const result = await this.siteUserServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class StatHourController {
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statHourServiceImplService.info(id);
|
||||
const result = await this.statHourServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class StatHourController {
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statHourServiceImplService.edit(id, body);
|
||||
const result = await this.statHourServiceImplService.edit(query, body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class StatHourController {
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.statHourServiceImplService.del(id);
|
||||
const result = await this.statHourServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SysAgreementController {
|
||||
@ApiOperation({ summary: '/agreement/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAgreementkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAgreementServiceImplService.getAgreement(key);
|
||||
const result = await this.sysAgreementServiceImplService.getAgreement(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SysAreaController {
|
||||
@ApiOperation({ summary: '/tree/{level}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTreelevel(@Param('level') level: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAreaServiceImplService.getAreaTree(level);
|
||||
const result = await this.sysAreaServiceImplService.getAreaTree(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class SysAttachmentController {
|
||||
@ApiOperation({ summary: '/attachment' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAttachment(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.list(body, body);
|
||||
const result = await this.sysAttachmentServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SysAttachmentController {
|
||||
@ApiOperation({ summary: '/attachment/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteAttachmentdel(): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.del(body);
|
||||
const result = await this.sysAttachmentServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ export class SysAttachmentController {
|
||||
@ApiOperation({ summary: '/attachment/category' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAttachmentcategory(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysAttachmentServiceImplService.getCategoryList(body);
|
||||
const result = await this.sysAttachmentServiceImplService.getCategoryList(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ export class SysExportController {
|
||||
@ApiOperation({ summary: '/export/check/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExportchecktype(@Param('type') type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysExportServiceImplService.checkExportData(type, query, query);
|
||||
const result = await this.sysExportServiceImplService.checkExportData(query, query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class SysExportController {
|
||||
@ApiOperation({ summary: '/export/{type}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExporttype1(@Param('type') type: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysExportServiceImplService.exportData(type, query, query);
|
||||
const result = await this.sysExportServiceImplService.exportData(query, query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class SysMenuController {
|
||||
@ApiOperation({ summary: '/menu/{appType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenuappType(@Param('appType') appType: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.getAllMenuList(appType, query);
|
||||
const result = await this.sysMenuServiceImplService.getAllMenuList(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SysMenuController {
|
||||
@ApiOperation({ summary: '/menu/{appType}/info/{menuKey}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenuappTypeinfomenuKey(@Param() params: Record<string, string>, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.get(appType, menuKey);
|
||||
const result = await this.sysMenuServiceImplService.get(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ export class SysMenuController {
|
||||
@ApiOperation({ summary: '/menu/dir/{addon}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMenudiraddon(@Param('addon') addon: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysMenuServiceImplService.getMenuByTypeDir(addon);
|
||||
const result = await this.sysMenuServiceImplService.getMenuByTypeDir(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SysNoticeController {
|
||||
@ApiOperation({ summary: '/info' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInfo(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeServiceImplService.info(id);
|
||||
const result = await this.sysNoticeServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class SysNoticeController {
|
||||
@ApiOperation({ summary: '/edit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postEdit(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeServiceImplService.edit(id, body);
|
||||
const result = await this.sysNoticeServiceImplService.edit(query, body);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class SysNoticeController {
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysNoticeServiceImplService.del(id);
|
||||
const result = await this.sysNoticeServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export class SysPosterController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.page(body, body);
|
||||
const result = await this.sysPosterServiceImplService.page(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export class SysPosterController {
|
||||
@ApiOperation({ summary: '/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getList(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.list(body);
|
||||
const result = await this.sysPosterServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export class SysPosterController {
|
||||
@ApiOperation({ summary: '/init' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getInit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.init(body);
|
||||
const result = await this.sysPosterServiceImplService.init(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ export class SysPosterController {
|
||||
@ApiOperation({ summary: '/template' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getTemplate(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.template(body);
|
||||
const result = await this.sysPosterServiceImplService.template(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ export class SysPosterController {
|
||||
@ApiOperation({ summary: '/status' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putStatus(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.modifyStatus(id, query);
|
||||
const result = await this.sysPosterServiceImplService.modifyStatus(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ export class SysPosterController {
|
||||
@ApiOperation({ summary: '/default' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putDefault(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysPosterServiceImplService.modifyDefault(id);
|
||||
const result = await this.sysPosterServiceImplService.modifyDefault(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ export class SysRoleController {
|
||||
@ApiOperation({ summary: '/role/{roleId}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRoleroleId(@Param('roleId') roleId: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysRoleServiceImplService.info(id);
|
||||
const result = await this.sysRoleServiceImplService.info(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export class SysRoleController {
|
||||
@ApiOperation({ summary: '/role/{roleId}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async deleteRoleroleId(@Param('roleId') roleId: string): Promise<Result<any>> {
|
||||
const result = await this.sysRoleServiceImplService.del(id);
|
||||
const result = await this.sysRoleServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ export class SysScheduleController {
|
||||
@ApiOperation({ summary: '/log/list' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getLoglist(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.logList(body, body);
|
||||
const result = await this.sysScheduleServiceImplService.logList(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ export class SysScheduleController {
|
||||
@ApiOperation({ summary: '/log/clear' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async putLogclear(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysScheduleServiceImplService.clearLog(scheduleId);
|
||||
const result = await this.sysScheduleServiceImplService.clearLog(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class SysUserRoleController {
|
||||
@ApiOperation({ summary: '/del' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async postDel(@Body() body: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.sysUserRoleServiceImplService.del(id);
|
||||
const result = await this.sysUserRoleServiceImplService.del(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export class StorageController {
|
||||
@ApiOperation({ summary: '/storage/{storageType}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getStoragestorageType(@Param('storageType') storageType: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.storageConfigServiceImplService.getStorageConfig(storageType);
|
||||
const result = await this.storageConfigServiceImplService.getStorageConfig(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class VerifierController {
|
||||
@ApiOperation({ summary: '' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async get(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.verifierServiceImplService.list(body, body);
|
||||
const result = await this.verifierServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class VerifyController {
|
||||
@ApiOperation({ summary: '/record' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getRecord(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.verifyServiceImplService.list(body, body);
|
||||
const result = await this.verifyServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class VersionController {
|
||||
@ApiOperation({ summary: '/version' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getVersion(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.list(body);
|
||||
const result = await this.weappVersionServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class VersionController {
|
||||
@ApiOperation({ summary: '/upload/{key}' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUploadkey(@Param('key') key: string, @Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.getWeappCompileLog(key);
|
||||
const result = await this.weappVersionServiceImplService.getWeappCompileLog(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ export class MediaController {
|
||||
@ApiOperation({ summary: '/media' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getMedia(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatMediaServiceImplService.list(body, body);
|
||||
const result = await this.wechatMediaServiceImplService.list(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class ReplyController {
|
||||
@ApiOperation({ summary: '/keywords' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getKeywords(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatReplyServiceImplService.getKeywordList(body, body);
|
||||
const result = await this.wechatReplyServiceImplService.getKeywordList(query, query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class OplatformController {
|
||||
@ApiOperation({ summary: '/authorization' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAuthorization(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.oplatformServiceImplService.authorization(body);
|
||||
const result = await this.oplatformServiceImplService.authorization(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class WeappVersionController {
|
||||
@ApiOperation({ summary: '/weapp/commit' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getWeappcommit(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.weappVersionServiceImplService.list(body);
|
||||
const result = await this.weappVersionServiceImplService.list(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ export class AppController {
|
||||
@ApiOperation({ summary: '/app/newversion' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAppnewversion(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.appServiceImplService.getNewVersion(body);
|
||||
const result = await this.appServiceImplService.getNewVersion(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ export class WechatController {
|
||||
@ApiOperation({ summary: '/user' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getUser(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.wechatServiceImplService.getWechatUser(body);
|
||||
const result = await this.wechatServiceImplService.getWechatUser(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export class CoreAsyncTaskController {
|
||||
@ApiOperation({ summary: '/sync' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getSync(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreAsyncTaskServiceImplService.execute(body);
|
||||
const result = await this.coreAsyncTaskServiceImplService.execute(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ export class CoreAsyncTaskController {
|
||||
@ApiOperation({ summary: '/async' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getAsync(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreAsyncTaskServiceImplService.executeAsyncTask(body);
|
||||
const result = await this.coreAsyncTaskServiceImplService.executeAsyncTask(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export class CoreQueueControlController {
|
||||
@ApiOperation({ summary: '/exec' })
|
||||
@ApiResponse({ status: 200, description: '成功' })
|
||||
async getExec(@Query() query: Record<string, any>): Promise<Result<any>> {
|
||||
const result = await this.coreQueueServiceImplService.execUseQueue(body);
|
||||
const result = await this.coreQueueServiceImplService.execUseQueue(query);
|
||||
return Result.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user