REAPI/app/protects/service/ServiceInfoService.php

26 lines
558 B
PHP
Raw Normal View History

2024-09-29 15:43:18 +08:00
<?php
namespace app\protects\service;
use app\core\Service;
/**
* 业务类服务
**/
class ServiceInfoService extends Service
{
public $table="service_info";
public function getAll($id="",$key=""){
$where=array();
if($id)$where['id']=$id;
if($key)$where['key']=$key;
$service_infoes=$this->db()->where($where)->select()->toArray();
return $service_infoes;
}
public function infoType(){
return [
1=>'加油卡',
2=>'话费',
3=>'权益'
];
}
}