提交其他文件

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,244 @@
<?php
namespace app\storeapi\controller;
use app\storeapi\logic\UserLogic;
class UserController extends BaseApiController
{
public array $notNeedLogin = [];
/**
* @notes 获取个人信息
* @return \think\response\Json
* @author 段誉
* @date 2022/9/20 19:46
*/
public function info()
{
$result = UserLogic::info($this->userId);
return $this->data($result);
}
/**
* @notes 更新用户头像昵称
* @return \think\response\Json
* @author 段誉
* @date 2023/2/22 11:15
*/
public function updateUser()
{
$data = $this->request->post();
$result = UserLogic::updateUser($data, $this->userId);
if($result){
return $this->success('操作成功', [], 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 钱包明细
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/17 10:50
*/
public function balanceLogList()
{
$data = $this->request->post();
$result = UserLogic::balanceLogList($data, $this->userId);
if($result){
return $this->success('', $result, 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 钱包明细详情
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/17 15:44
*/
public function balanceLogDetails()
{
$data = $this->request->post();
$result = UserLogic::balanceLogDetails($data);
if($result){
return $this->success('', $result, 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 查询余额
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/17 14:28
*/
public function checkMoney()
{
$data = $this->request->post();
$result = UserLogic::checkMoney($data);
if($result){
return $this->success('', $result, 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 添加到账方式
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/17 14:28
*/
public function addBank()
{
$data = $this->request->post();
$result = UserLogic::addBank($data,$this->userId);
if($result){
return $this->success('操作成功', [], 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 查询到账方式
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/17 14:58
*/
public function checkBank()
{
$result = UserLogic::checkBank($this->userId);
if($result){
return $this->success('', $result, 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 删除到账方式
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/17 16:15
*/
public function delBank()
{
$data = $this->request->post();
$result = UserLogic::delBank($data);
if($result){
return $this->success('操作成功', [], 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 提交体现
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/17 15:07
*/
public function submitReflect()
{
$data = $this->request->post();
$result = UserLogic::submitReflect($data,$this->userId);
if($result){
return $this->success('操作成功', [], 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 查询门店用户
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/18 17:33
*/
public function checkStoreUserList()
{
$data = $this->request->post();
$result = UserLogic::checkStoreUserList($data);
return $this->success('', $result, 1, 1);
}
/**
* @notes 管理端余额充值明细
* @return \think\response\Json
* @author yzt
* @date 2025/12/18 17:33
*/
public function storeRechargeLists()
{
$data = $this->request->post();
$result = UserLogic::storeRechargeLists($data);
return $this->success('', $result, 1, 1);
}
/**
* @notes 查询门店用户详情
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/19 13:52
*/
public function checkStoreUserDetails()
{
$data = $this->request->post();
$result = UserLogic::checkStoreUserDetails($data);
return $this->success('', $result, 1, 1);
}
/**
* @notes 编辑门店用户备注
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/19 13:53
*/
public function editStoreUserRemark()
{
$data = $this->request->post();
$result = UserLogic::editStoreUserRemark($data);
if($result){
return $this->success('操作成功', [], 1, 1);
}
return $this->fail(UserLogic::getError());
}
/**
* @notes 查询门店用户消费明细
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/19 14:00
*/
public function checkStoreUserBuyList()
{
$data = $this->request->post();
$result = UserLogic::checkStoreUserBuyList($data);
return $this->success('', $result, 1, 1);
}
/**
* @notes 查询门店财务管理流水列表
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/19 14:48
*/
public function checkStoreAccountList()
{
$data = $this->request->post();
$result = UserLogic::checkStoreAccountList($data,$this->userId);
return $this->success('', $result, 1, 1);
}
/**
* @notes 首页统计
* @return \think\response\Json
* @author 胥聪
* @date 2025/12/19 14:48
*/
public function checkMoth()
{
$data = $this->request->post();
$result = UserLogic::checkMoth($data,$this->userId);
return $this->success('', $result, 1, 1);
}
}