新增药师开具处方ca签章

This commit is contained in:
2023-04-03 11:34:53 +08:00
parent d09f9d8d77
commit 29965b14af
10 changed files with 225 additions and 90 deletions
@@ -11,7 +11,8 @@ use Hyperf\Snowflake\Concern\Snowflake;
/**
* @property int $cert_id 主键id
* @property int $user_id 用户id
* @property int $user_id 用户id(系统证书时为null)
* @property int $is_system 是否系统证书(0: 1:是)
* @property string $cert_base64 签名值证书
* @property string $cert_chain_p7 证书链
* @property string $cert_serial_number 证书序列号
@@ -19,19 +20,19 @@ use Hyperf\Snowflake\Concern\Snowflake;
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 修改时间
*/
class DoctorPharmacistCert extends Model
class UserCaCert extends Model
{
use Snowflake;
/**
* The table associated with the model.
*/
protected ?string $table = 'doctor_pharmacist_cert';
protected ?string $table = 'user_ca_cert';
/**
* The attributes that are mass assignable.
*/
protected array $fillable = ['cert_id', 'user_id', 'cert_base64', 'cert_chain_p7', 'cert_serial_number', 'ca_pin', 'created_at', 'updated_at'];
protected array $fillable = ['cert_id', 'user_id', 'is_system', 'cert_base64', 'cert_chain_p7', 'cert_serial_number', 'ca_pin', 'created_at', 'updated_at'];
protected string $primaryKey = "cert_id";
@@ -70,9 +71,9 @@ class DoctorPharmacistCert extends Model
/**
* 新增
* @param array $data
* @return \Hyperf\Database\Model\Model|DoctorPharmacistCert
* @return \Hyperf\Database\Model\Model|UserCaCert
*/
public static function addDoctorPharmacistCert(array $data = []): \Hyperf\Database\Model\Model|DoctorPharmacistCert
public static function addDoctorPharmacistCert(array $data = []): \Hyperf\Database\Model\Model|UserCaCert
{
return self::create($data);
}