删除用不上的模型

This commit is contained in:
lingling 2025-02-18 09:24:02 +08:00
parent 595e8b3cdd
commit 0ae5e61425
15 changed files with 0 additions and 489 deletions

View File

@ -1,40 +0,0 @@
<?php
namespace app\controller;
use support\Request;
use App\Utils\ApiResponseApp;
use App\model\Carousel;
use App\model\Project;
use App\model\ProjectDetailed;
use App\model\ProjectRegister;
use App\model\Carouselad;
use App\model\Mechanism;
use Tinywan\Jwt\JwtToken;
use hg\apidoc\annotation as Apidoc;
use support\Db;
/**
* @Apidoc\Title("用户vip控制器")
*/
class TaskController
{
protected $noNeedLogin = ['phone_list', 'get_project', 'get_projectdetailed', 'get_mechanism_list'];
/**
* @Apidoc\Title("1.0 获取首页轮播图")
* @Apidoc\Url("api/task/phone_list")
* @Apidoc\Method("POST")
*/
public function phone_list(Request $request)
{
// return json(['code' => 0, 'msg' => 'ok']);
return ApiResponseApp::success(1, $request->header('token'));
}
}

View File

@ -1,27 +0,0 @@
<?php
namespace app\dao;
use App\model\Message;
use App\model\BankLog;
use plugin\admin\app\model\User;
class MessageDao {
/**
* 发送消息 提醒
*
* @param [int] $to_user_id 用户id
* @param [string] $title 标题
* @param [string] $content 内容
* @param string $parameters 携带参数
* @return void
*/
public static function SendMessage($to_user_id,$title,$content,$parameters=""){
$Message = new Message();
$Message->content = $content;
$Message->title = $title;
$Message->parameters = $parameters;
$Message->userid = $to_user_id;
$Message->save();
}
}

View File

@ -1,33 +0,0 @@
<?php
namespace app\dao;
use App\model\Users;
use App\model\BankLog;
use App\Utils\FunctionResponse;
use App\model\Volunteerservicecorp;
use App\model\Volunteerservicecorpsdetailed;
use App\model\Volunteerjoinrequest;
/**
* 志愿者服务队Dao层
*/
class VolunteerservicecorpsDao {
/**
* 删除志愿者服务队
* 连带审批记录一起删除
* @param [type] $groupid
* @return void
*/
public static function del($groupid){
$Volunteerservicecorpsdetailed = Volunteerservicecorpsdetailed::where('groupid', $groupid)->first();
$Volunteerservicecorpsdetailed->delete();
$Volunteerservicecorp = Volunteerservicecorp::where('id', $groupid)->first();
$Volunteerservicecorp->delete();
$Volunteerjoinrequest=Volunteerjoinrequest::where('groupid', $groupid)->get();
foreach($Volunteerjoinrequest as $k => $v){
$v->delete();
}
}
}

View File

@ -1,28 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $img_url 图片地址
*/
class Carousel extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'carousel';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,31 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $img_url 图片url
*/
class Carouselad extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'carouselad';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,32 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property integer $userid 用户id
* @property integer $relationship 亲属关系0父母1子女2配偶3其他
* @property string $name 姓名
* @property integer $phone 电话
*/
class Contact extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'contact';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,35 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $title 标题
* @property string $writer 作者
* @property string $content 内容
* @property integer $type 类型0是热点资讯1是银龄动态
* @property string $img 图片地址
*/
class Hotinformation extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'hotinformation';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,34 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $name 名称
* @property integer $level 星级最高五级
* @property string $address 地址
* @property integer $bed 床位数
* @property string $characteristic 特色
* @property string $briefIntroduction 简介
* @property string $imgurl 首页图片地址
*/
class Mechanism extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'mechanism';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,33 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $title 标题
* @property string $content 内容
* @property integer $type 消息类型 0通知1会话
* @property integer $userid 用户id
* @property string $parameters 携带参数
*/
class Message extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'message';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,33 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $img 首页图
* @property string $start_time 开始时间
* @property string $end_time 结束时间
* @property string $address 地址
* @property string $title 标题
* @property string $type 分类
*/
class Project extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'project';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,35 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property integer $projectid 对应项目id(主键)
* @property integer $serviceduration 服务时长单位分钟
* @property integer $recruitingpersonnel 招募人数志愿者
* @property integer $registerserve 招募人数被服务者
* @property string $servicedescription 服务说明
* @property integer $totalnumberoftimecoins 时间币/每个人
* @property integer $volunteergender 志愿者性别要求1为男0为女
* @property integer $volunteerage 志愿者年龄
* @property string $registrationisclosed 报名截止日期
*/
class ProjectDetailed extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'project_detailed';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'projectid';
}

View File

@ -1,30 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property integer $projectid 项目id
* @property integer $type 类型0是志愿者1是被服务者
* @property integer $userid 用户id
*/
class ProjectRegister extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'project_register';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,34 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property integer $userid 申请加入用户id
* @property integer $status 状态码0提交申请1通过未加入2已完成
* @property string $remark 用户申请备注
* @property integer $groupid 用户申请的志愿队id
*/
class Volunteerjoinrequest extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'volunteerjoinrequest';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,32 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property integer $leaderid 组长id
* @property string $groupname 组名
* @property string $category 类目|分割
* @property string $img 主要图
* @property string $briefly 队伍简介
*/
class Volunteerservicecorp extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'volunteerservicecorps';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}

View File

@ -1,32 +0,0 @@
<?php
namespace app\model;
use support\Model;
/**
* @property integer $id 主键(主键)
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @property integer $userid 用户id
* @property integer $groupid 对应的组id
*/
class Volunteerservicecorpsdetailed extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'volunteerservicecorpsdetailed';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
}