import { AgentEntity } from '../../entity/agent';
import { Provide } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { AgentService } from '../../service/agent';

@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'page', 'list'],
  entity: AgentEntity,
  service: AgentService,
  pageQueryOp: {
    keyWordLikeFields: ['name', 'username'],
  },
})
export class AgentController extends BaseController {}
