"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const egg_1=require("egg");class AdminService extends egg_1.Service{async isAdmin(e,a){const{app:b}=this,c=await b.mysql.query("SELECT * FROM admin WHERE name = ? AND password = ?",[e,a]);return Array.isArray(c)&&0<c.length}}exports.default=AdminService;