提交其他文件

This commit is contained in:
2026-03-14 16:20:49 +08:00
parent a227deaecd
commit 0a19b334f8
1385 changed files with 73568 additions and 0 deletions

View File

@ -0,0 +1,55 @@
<?php
namespace app\api\controller;
use app\api\logic\SubmitFormLogic;
class SubmitFormController extends BaseApiController
{
public array $notNeedLogin = [];
public function addTeamaster(){
$data = $this->request->post();
$data['user_id'] = $this->userId;
$result = SubmitFormLogic::addTeamaster($data);
if ($result === false) {
return $this->fail(SubmitFormLogic::getError());
}
return $this->success('',$result, 1, 1);
}
public function addStore(){
$data = $this->request->post();
$data['user_id'] = $this->userId;
$result = SubmitFormLogic::addStore($data);
if ($result === false) {
return $this->fail(SubmitFormLogic::getError());
}
return $this->success('',$result, 1, 1);
}
public function teamasterRealStatus(){
$data = $this->request->post();
$data['user_id'] = $this->userId;
$result = SubmitFormLogic::teamasterRealStatus($data);
if ($result === false) {
return $this->fail(SubmitFormLogic::getError());
}
return $this->success('',$result, 1, 1);
}
public function storeRealStatus(){
$data = $this->request->post();
$data['user_id'] = $this->userId;
$result = SubmitFormLogic::storeRealStatus($data);
if ($result === false) {
return $this->fail(SubmitFormLogic::getError());
}
return $this->success('',$result, 1, 1);
}
}