import { CoolController, BaseController } from '@cool-midway/core'; import { NfcBindService } from '../../service/bind'; /** * 后台 NFC 绑定激活标准配置(不开 CRUD) */ export const adminNfcBindCurdOption = { api: [] as Array< 'add' | 'delete' | 'update' | 'info' | 'list' | 'page' >, service: NfcBindService, serviceApis: [ { method: 'bind', summary: '绑定名片并激活设备' }, { method: 'activate', summary: '激活已绑定名片的设备' }, { method: 'switchCard', summary: '更换已激活设备绑定的名片' }, { method: 'unbind', summary: '解绑设备名片' }, ], }; /** * NFC 模块-后台绑定激活 * 路由前缀:/admin/nfc/bind */ @CoolController(adminNfcBindCurdOption) export class AdminNfcBindController extends BaseController {}