import { Provide } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { ProjectPhaseEntity } from '../../entity/phase';
import { ProjectPhaseService } from '../../service/phase';

/**
 * 项目阶段
 */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: ProjectPhaseEntity,
  service: ProjectPhaseService,
  listQueryOp: {
    fieldEq: ['projectId'],
    addOrderBy: {
      sortOrder: 'ASC',
    },
  },
})
export class AdminProjectPhaseController extends BaseController {}
