[ ['name' => 'openid', 'title' => 'openid', 'require' => true, 'type' => 'string'], ], 'getinfobyid' => [ ['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'string'], ], 'updatebyid' => [ ['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'string'], ], ]; return $list; } public function newinfo() { $param = request()->param(); $l_c = new companylogic(); $result = $l_c->newinfo($param); if (1 != $result['status']) { return backjson(0, $result['msg']); } return backjson(200, $result['data']); } public function getinfobyid() { $param = request()->param(); $l_c = new companylogic(); $result = $l_c->getinfobyid($param); if (1 != $result['status']) { return backjson(0, $result['msg']); } return backjson(200, $result['data']); } public function updatebyid() { $param = request()->param(); $l_c = new companylogic(); $result = $l_c->updatebyid($param); if (1 != $result['status']) { return backjson(0, $result['msg']); } return backjson(200, $result['data']); } }