You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
803 B
30 lines
803 B
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Utils\Traits;
|
|
|
|
trait BuildCacheKeyName
|
|
{
|
|
/**
|
|
* 获取 门诊待缴费列表 缓存键名
|
|
* @param string $open_id
|
|
* @param string $patient_id
|
|
* @return string
|
|
*/
|
|
public function getOutpatientPendingListsKey(string $open_id, string $patient_id): string
|
|
{
|
|
return 'outpatient.pending.'. $open_id. '.'. $patient_id;
|
|
}
|
|
|
|
/**
|
|
* 获取 门诊待缴费详情 缓存键名
|
|
* @param string $open_id
|
|
* @param string $patient_id
|
|
* @param string $serial_no
|
|
* @return string
|
|
*/
|
|
public function getOutpatientPendingDetailsKey(string $open_id, string $patient_id, string $serial_no): string
|
|
{
|
|
return 'outpatient.pending.'. $open_id.'.'. $patient_id. '.'. $serial_no;
|
|
}
|
|
}
|
|
|