|
@@ -62,7 +62,7 @@ const ControllerContext = (data) => {
|
|
|
fc.push(`import { ApiResponse, ApiTags } from '@midwayjs/swagger';`);
|
|
|
fc.push(`import { Validate } from '@midwayjs/validate';`);
|
|
|
fc.push(`@ApiTags(['${name_zh}'])`);
|
|
|
- fc.push(`@Controller('/${prefix}')`);
|
|
|
+ fc.push(`@Controller('/${table_name}')`);
|
|
|
fc.push(`export class ${prefix}Controller extends BaseController {`);
|
|
|
fc.push(` @Inject()`);
|
|
|
fc.push(` service: ${prefix}Service;`);
|