import { ChannelEntity } from '../../entity/channel';
import { Provide } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { ChannelService } from '../../service/channel';

@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'info', 'page'],
  entity: ChannelEntity,
  service: ChannelService,
  pageQueryOp: {
    keyWordLikeFields: ['name', 'code', 'payType'],
  },
})
export class ChannelController extends BaseController {
}
