chore: vip label translate

This commit is contained in:
xiaojunnuo
2025-06-29 17:41:54 +08:00
parent 2d1504a057
commit 3fb3cee423
7 changed files with 25 additions and 9 deletions
@@ -1,6 +1,7 @@
import {ALL, Body, Controller, Inject, Post, Provide, Query} from '@midwayjs/core';
import {Constants, CrudController} from '@certd/lib-server';
import { TemplateService } from '../../../modules/pipeline/service/template-service.js';
import { checkPlus } from '@certd/plus-core';
/**
* 流水线模版
@@ -42,6 +43,7 @@ export class TemplateController extends CrudController<TemplateService> {
@Post('/add', { summary: Constants.per.authOnly })
async add(@Body(ALL) bean) {
bean.userId = this.getUserId();
checkPlus()
return super.add(bean);
}
@@ -77,6 +79,7 @@ export class TemplateController extends CrudController<TemplateService> {
@Post('/createPipelineByTemplate', { summary: Constants.per.authOnly })
async createPipelineByTemplate(@Body(ALL) body: any) {
body.userId = this.getUserId();
checkPlus()
const res = await this.service.createPipelineByTemplate(body);
return this.ok(res);
}