宝体数据调用接口
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.
 
 
 
 
 
 

43 lines
745 B

<?php
namespace app\store\model;
use app\common\model\WxappHelp as WxappHelpModel;
/**
* 小程序帮助中心
* Class WxappHelp
* @package app\store\model
*/
class WxappHelp extends WxappHelpModel
{
/**
* 新增记录
* @param $data
* @return false|int
*/
public function add($data)
{
$data['wxapp_id'] = self::$wxapp_id;
return $this->allowField(true)->save($data);
}
/**
* 更新记录
* @param $data
* @return bool|int
*/
public function edit($data)
{
return $this->allowField(true)->save($data) !== false;
}
/**
* 删除记录
* @return int
*/
public function remove() {
return $this->delete();
}
}