wupengfei 2 years ago
parent
commit
98b2fc853c

+ 6 - 5
.idea/workspace.xml

@@ -2,8 +2,9 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
+      <change afterPath="$PROJECT_DIR$/application/api/controller/Recruit.php" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/application/common/model/Recruit.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/view/recruit/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/recruit/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -134,10 +135,10 @@
   <component name="RecentsManager">
     <key name="CopyFile.RECENT_KEYS">
       <recent name="D:\zs\gaoyixia\application\common\model" />
+      <recent name="D:\zs\gaoyixia\application\api\controller" />
       <recent name="D:\zs\gaoyixia\application\operate\view" />
       <recent name="D:\zs\gaoyixia\application\operate\controller" />
       <recent name="D:\zs\gaoyixia\application\operate\view\activity" />
-      <recent name="D:\zs\gaoyixia\application\api\controller" />
     </key>
   </component>
   <component name="SvnConfiguration">
@@ -207,7 +208,7 @@
       <workItem from="1663115672199" duration="17172000" />
       <workItem from="1663216924630" duration="8987000" />
       <workItem from="1663289320226" duration="8186000" />
-      <workItem from="1663374115380" duration="11576000" />
+      <workItem from="1663374115380" duration="11880000" />
     </task>
     <servers />
   </component>
@@ -233,10 +234,10 @@
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
     <state x="1175" y="519" key="#com.intellij.fileTypes.FileTypeChooser/0.0.2560.1400@0.0.2560.1400" timestamp="1659079177590" />
-    <state x="1106" y="469" key="#com.jetbrains.php.actions.copyPaste.importReferences.PhpImportReferencesDialog" timestamp="1663394762942">
+    <state x="1106" y="469" key="#com.jetbrains.php.actions.copyPaste.importReferences.PhpImportReferencesDialog" timestamp="1663398727981">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
-    <state x="1106" y="469" key="#com.jetbrains.php.actions.copyPaste.importReferences.PhpImportReferencesDialog/0.0.2560.1400@0.0.2560.1400" timestamp="1663394762942" />
+    <state x="1106" y="469" key="#com.jetbrains.php.actions.copyPaste.importReferences.PhpImportReferencesDialog/0.0.2560.1400@0.0.2560.1400" timestamp="1663398727981" />
     <state x="283" y="145" width="1942" height="1088" key="DiffContextDialog" timestamp="1663143508458">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>

+ 57 - 0
application/api/controller/Recruit.php

@@ -0,0 +1,57 @@
+<?php
+namespace app\api\controller;
+use app\common\model\RecruitCate;
+use library\tools\Data;
+/**
+ * @title 招聘
+ * @controller Recruit
+ * @group base
+ */
+class Recruit extends Base
+{
+    // 需要登录的
+    protected $need_login = ['','','','','','',''];
+    public function initialize()
+    {
+        parent::initialize();
+        parent::setUid();
+    }
+
+    /**
+     * @title 招聘接口说明
+     * @desc  招聘接口说明
+     * @author  qc
+     * @url /api/Recruit/classIntro
+     * @method GET
+     * @return name:1 type:string default:-- desc:--
+     */
+     public function classIntro(){}
+
+    /**
+     * @title 获取招聘分类
+     * @desc  两级分类
+     * @author  qc
+     * @url /api/Recruit/getRecruitCate
+     * @method GET
+     * @header name:Authorization require:1 desc:Token
+     * @return name:id type:int default:-- desc:分类id
+     * @return name:title type:string default:0 desc:分类名称
+     * @return name:children type:array default:0 desc:下级分类
+     */
+     public function getRecruitCate()
+     {
+         $list = RecruitCate::where(['is_deleted'=>0])->field('id,title,pid')->order('sort desc')->select()->toArray();
+         $list =  make_tree($list);
+         $this->success('ok',['list'=>$list]);
+     }
+
+
+
+
+
+
+
+
+
+
+}

+ 8 - 0
application/common/model/Recruit.php

@@ -0,0 +1,8 @@
+<?php
+namespace app\common\model;
+use think\Model;
+// 招聘
+class Recruit extends Model
+{
+
+}