MembersLog.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * App\Models\MembersLog
  7. *
  8. * @property int $id
  9. * @property int $log_uid 会员uid
  10. * @property string $log_username 会员用户名
  11. * @property string $log_value 日志说明
  12. * @property int $log_ip 登陆ip
  13. * @property string $log_address 登陆地址
  14. * @property int $log_utype 会员类型:1企业;2个人
  15. * @property string $log_source 操作途径(网页版,触屏端等)
  16. * @property int $subsite_id 分站点:0为总站
  17. * @property int $type 日志类型(1:前台 2 后台)
  18. * @property int|null $status 状态(1:可用 0 删除)
  19. * @property \Illuminate\Support\Carbon|null $created_at
  20. * @property \Illuminate\Support\Carbon|null $updated_at
  21. * @property string|null $deleted_at
  22. * @method static bool|null forceDelete()
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog newModelQuery()
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog newQuery()
  25. * @method static \Illuminate\Database\Query\Builder|\App\Models\MembersLog onlyTrashed()
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog query()
  27. * @method static bool|null restore()
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereCreatedAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereDeletedAt($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereId($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereLogAddress($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereLogIp($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereLogSource($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereLogUid($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereLogUsername($value)
  36. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereLogUtype($value)
  37. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereLogValue($value)
  38. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereStatus($value)
  39. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereSubsiteId($value)
  40. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereType($value)
  41. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MembersLog whereUpdatedAt($value)
  42. * @method static \Illuminate\Database\Query\Builder|\App\Models\MembersLog withTrashed()
  43. * @method static \Illuminate\Database\Query\Builder|\App\Models\MembersLog withoutTrashed()
  44. * @mixin \Eloquent
  45. */
  46. class MembersLog extends Model
  47. {
  48. use SoftDeletes;
  49. protected $table = 'members_logs';
  50. protected $fillable = ['log_uid','log_username','log_value','log_ip','log_address','log_utype','log_source','subsite_id','type'];
  51. protected $type_arr = array(
  52. 1000=>array('type'=>'注册','content'=>'注册成功'),
  53. 1001=>array('type'=>'登录','content'=>'登录成功'),
  54. 1002=>array('type'=>'发布职位','content'=>'发布了职位(id:%s)'),
  55. 1003=>array('type'=>'修改职位','content'=>'修改了职位(id:%s)'),
  56. 1004=>array('type'=>'保存企业资料','content'=>'保存企业资料'),
  57. 1005=>array('type'=>'上传营业执照','content'=>'上传营业执照'),
  58. 1006=>array('type'=>'刷新职位','content'=>'刷新职位(id:%s,方式:%s)'),
  59. 1007=>array('type'=>'关闭职位','content'=>'关闭职位(id:%s)'),
  60. 1008=>array('type'=>'恢复显示职位','content'=>'恢复显示职位(id:%s)'),
  61. 1009=>array('type'=>'删除职位','content'=>'删除职位(id:%s)'),
  62. 1010=>array('type'=>'邀请面试','content'=>'邀请面试(职位id:%s,简历id:%s)'),
  63. 1011=>array('type'=>'删除邀请面试记录','content'=>'删除邀请面试记录(记录id:%s)'),
  64. 1012=>array('type'=>'下载简历','content'=>'下载简历(简历id:%s,方式:%s)'),
  65. 1013=>array('type'=>'删除职位申请','content'=>'删除职位申请(记录id:%s)'),
  66. 1014=>array('type'=>'简历保存到电脑','content'=>'将简历保存到电脑(简历id:%s)'),
  67. 1015=>array('type'=>'修改过滤条件','content'=>'修改职位接收简历的过滤条件(职位id:%s)'),
  68. 1016=>array('type'=>'已收到简历设为已查看','content'=>'将已收到简历设为已查看(记录id:%s)'),
  69. 1017=>array('type'=>'删除已下载简历','content'=>'删除已下载简历(记录id:%s)'),
  70. 1018=>array('type'=>'收藏简历','content'=>'收藏简历(简历id:%s)'),
  71. 1019=>array('type'=>'删除收藏简历','content'=>'删除收藏简历(记录id:%s)'),
  72. 1020=>array('type'=>'删除浏览过的简历','content'=>'删除浏览过的简历(记录id:%s)'),
  73. 1021=>array('type'=>'删除谁看过我的职位','content'=>'删除谁看过我的职位(记录id:%s)'),
  74. 1022=>array('type'=>'删除企业风采','content'=>'删除企业风采(记录id:%s)'),
  75. 1023=>array('type'=>'修改企业风采备注','content'=>'修改企业风采备注(记录id:%s)'),
  76. 1024=>array('type'=>'查看系统消息','content'=>'查看系统消息(消息id:%s)'),
  77. 1025=>array('type'=>'删除系统消息','content'=>'删除系统消息(消息id:%s)'),
  78. 1026=>array('type'=>'发送反馈消息','content'=>'发送反馈消息(发送者uid:%s,接收者uid:%s,消息内容:%s)'),
  79. 1027=>array('type'=>'删除反馈消息','content'=>'删除反馈消息(消息id:%s)'),
  80. 1028=>array('type'=>'发送简历到邮箱','content'=>'发送简历到邮箱(简历id:%s,接收邮箱:%s)'),
  81. 1029=>array('type'=>'标记收到的简历','content'=>'标记收到的简历(记录id:%s,标记为:%s)'),
  82. 1030=>array('type'=>'标记已下载简历','content'=>'标记已下载简历(记录id:%s,标记为:%s)'),
  83. 1031=>array('type'=>'更换企业模板','content'=>'更换企业模板(模板目录名:%s)'),
  84. 1032=>array('type'=>'举报简历','content'=>'举报简历(简历id:%s)'),
  85. 1033=>array('type'=>'预定招聘会展位','content'=>'预定招聘会展位(招聘会id:%s,展位id:%s)'),
  86. 8001=>array('type'=>'邮箱验证','content'=>'邮箱验证'),
  87. 8002=>array('type'=>'手机验证','content'=>'手机验证'),
  88. 8003=>array('type'=>'签到','content'=>'签到'),
  89. 9001=>array('type'=>'创建订单','content'=>'创建订单(订单号:%s,付款方式:%s)'),
  90. 9002=>array('type'=>'开通服务','content'=>'开通服务(服务名称:%s,付款方式:%s)'),
  91. 9003=>array('type'=>'索取发票','content'=>'索取发票(订单ID:%s)'),
  92. 9004=>array('type'=>'取消订单','content'=>'取消订单(订单号:%s)'),
  93. 9005=>array('type'=>'删除订单','content'=>'删除订单(订单号:%s)'),
  94. 9006=>array('type'=>'申请退出诚聘通','content'=>'申请退出诚聘通会员'),
  95. 2001=>array('type'=>'刷新简历','content'=>'刷新简历(简历id:%s)'),
  96. 2002=>array('type'=>'添加屏蔽企业','content'=>'添加屏蔽企业关健字:%s'),
  97. 2003=>array('type'=>'删除屏蔽企业','content'=>'删除屏蔽企业关健字(关键字id:%s)'),
  98. 2004=>array('type'=>'保存隐私设置','content'=>'保存隐私设置(简历id:%s)'),
  99. 2005=>array('type'=>'设置简历委托','content'=>'设置简历委托(简历id:%s)'),
  100. 2006=>array('type'=>'取消简历委托','content'=>'取消简历委托(简历id:%s)'),
  101. 2007=>array('type'=>'更换简历模板','content'=>'更换简历模板(简历id:%s,模板目录名:%s)'),
  102. 2008=>array('type'=>'删除简历','content'=>'删除简历(简历id:%s)'),
  103. 2009=>array('type'=>'设置默认简历','content'=>'设置默认简历(简历id:%s)'),
  104. 2010=>array('type'=>'创建简历','content'=>'创建简历(简历id:%s)'),
  105. 2011=>array('type'=>'复制简历','content'=>'复制简历(被复制简历id:%s,新简历id:%s)'),
  106. 2012=>array('type'=>'修改简历','content'=>'修改简历(简历id:%s)'),
  107. 2013=>array('type'=>'删除教育经历','content'=>'删除教育经历(简历id:%s)'),
  108. 2014=>array('type'=>'删除工作经历','content'=>'删除工作经历(简历id:%s)'),
  109. 2015=>array('type'=>'删除培训经历','content'=>'删除培训经历(简历id:%s)'),
  110. 2016=>array('type'=>'删除语言能力','content'=>'删除语言能力(简历id:%s)'),
  111. 2017=>array('type'=>'删除证书','content'=>'删除证书(简历id:%s)'),
  112. 2018=>array('type'=>'添加教育经历','content'=>'添加教育经历(简历id:%s)'),
  113. 2019=>array('type'=>'修改教育经历','content'=>'修改教育经历(简历id:%s)'),
  114. 2020=>array('type'=>'添加工作经历','content'=>'添加工作经历(简历id:%s)'),
  115. 2021=>array('type'=>'修改工作经历','content'=>'修改工作经历(简历id:%s)'),
  116. 2022=>array('type'=>'添加培训经历','content'=>'添加培训经历(简历id:%s)'),
  117. 2023=>array('type'=>'修改培训经历','content'=>'修改培训经历(简历id:%s)'),
  118. 2024=>array('type'=>'保存语言能力','content'=>'保存语言能力(简历id:%s)'),
  119. 2025=>array('type'=>'添加证书','content'=>'添加证书(简历id:%s)'),
  120. 2026=>array('type'=>'修改证书','content'=>'修改证书(简历id:%s)'),
  121. 2027=>array('type'=>'保存个人简介','content'=>'保存个人简介(简历id:%s)'),
  122. 2028=>array('type'=>'保存特长标签','content'=>'保存特长标签(简历id:%s)'),
  123. 2029=>array('type'=>'删除简历附件','content'=>'删除简历附件(简历id:%s)'),
  124. 2030=>array('type'=>'保存附件','content'=>'保存附件(简历id:%s)'),
  125. 2031=>array('type'=>'删除word简历','content'=>'删除word简历(简历id:%s)'),
  126. 2032=>array('type'=>'简历外发','content'=>'简历外发(简历id:%s,接收邮箱:%s)'),
  127. 2033=>array('type'=>'删除简历外发','content'=>'删除简历外发(记录id:%s)'),
  128. 2034=>array('type'=>'面试邀请设为已查看','content'=>'面试邀请设为已查看(记录id:%s)'),
  129. 2035=>array('type'=>'删除收藏的职位','content'=>'删除收藏的职位(记录id:%s)'),
  130. 2036=>array('type'=>'删除谁在关注我','content'=>'删除谁在关注我(记录id:%s)'),
  131. 2037=>array('type'=>'删除浏览过的职位','content'=>'删除浏览过的职位(记录id:%s)'),
  132. 2038=>array('type'=>'删除关注的企业','content'=>'删除关注的企业(记录id:%s)'),
  133. 2039=>array('type'=>'保存职位订阅器','content'=>'保存职位订阅器(记录id:%s)'),
  134. 2040=>array('type'=>'退订职位订阅器','content'=>'退订职位订阅器(记录id:%s)'),
  135. 2041=>array('type'=>'订阅职位订阅器','content'=>'订阅职位订阅器(记录id:%s)'),
  136. 2042=>array('type'=>'举报职位','content'=>'举报职位(职位id:%s)'),
  137. 2043=>array('type'=>'修改个人资料','content'=>'修改个人资料'),
  138. 2044=>array('type'=>'修改了个人头像','content'=>'修改了个人头像')
  139. );
  140. public function getTypeArr()
  141. {
  142. $memberLog = new MembersLog();
  143. return $memberLog->type_arr;
  144. }
  145. public function members()
  146. {
  147. return $this->belongsTo(Member::class,'log_uid','id');
  148. }
  149. }