Browse Source

在线增员提交

guozheng 1 month ago
parent
commit
19a4b301f5

+ 10 - 1
.drone.yml

@@ -21,4 +21,13 @@ pipeline:
       default_tags: true
       when:
         event: [tag]
-
+  gen_dev_api_doc:
+    image: plugins/downstream
+    server: https://drone.finogeeks.club
+    token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoieWFuZ3RhbyIsInR5cGUiOiJ1c2VyIn0.0IiIB0dIq6ZF_pKuhO4-Z8-8vGiUmmb2g-0Tr-sN3Xs
+    fork: true
+    repositories:
+      - business/doc@dev
+    when:
+      status: [success]
+      branch: [dev]

+ 86 - 0
src/main/java/com/finogeeks/swan/hxaccountsync/controllers/OnlineStaffController.java

@@ -0,0 +1,86 @@
+package com.finogeeks.swan.hxaccountsync.controllers;
+
+import com.finogeeks.swan.hxaccountsync.entity.AddOnlineStaffReq;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+import javax.xml.ws.Response;
+
+/**
+ * @author Guo Zheng
+ * @date 2020/8/26 3:06 下午
+ */
+@RestController
+@RequestMapping("/api/v1/klAccount/onlineStaff")
+public class OnlineStaffController {
+
+    /**
+     * @api {GET} /api/v1/klAccount/onlineStaff/:id [C/S]   根据在线增员的人员id获取在线增员的人员信息
+     * @apiGroup klAccount
+     * @apiVersion __API_VERSION__
+     * @apiPrivate
+     * @apiHeader {String} X-Consumer-Custom-ID="@xxx:kunlun.com"
+     * @apiParam {number} [page]   起始分页,默认0
+     * @apiParam {number} [size] 每页item数,默认20
+     * @apiSuccessExample {json} Success Status:
+     * HTTP/1.1 200
+     * <pre>
+     *   {
+     *       "id": "5c46cc839b0e9e34f0919d8f",
+     *       "ownerId": "@sunhui:finogeeks.club",
+     *       "ownerName": "孙珲",
+     *       "adviserId": "@sunhui:finogeeks.club",
+     *       "adviserName": "孙珲",
+     *       "topic": "string",
+     *       "content": {
+     *           "type": "", //IMAGE //TEXT
+     *           "data": {
+     *               "text": "" //type=TEXT
+     *               "image": { //type=IMAGE
+     *                   "netdiskId": "",
+     *                   "width": "",
+     *                   "height": "",
+     *                   "orientation": "",
+     *                   "type": ""
+     *               }
+     *           }
+     *       },
+     *       "startDate": "string",
+     *       "periodStart": "string",
+     *       "periodEnd": "string",
+     *       "createAt": 1548143747522,
+     *       "area": "string",
+     *       "addr": "string",
+     *       "participants": [],
+     *       "participantSize": 0,
+     *       "participantLimit": 0,
+     *       "signUp": false,
+     *       "channel":true,
+     *       "channelId":"fdsafdas"
+     *   }
+     * </pre>
+     * @apiErrorExample Error Status:
+     * HTTP/1.1 500
+     */
+    @GetMapping("/{id}")
+    public ResponseEntity<String> getOnlineStaffById(@RequestHeader("X-Consumer-Custom-ID") String operator,
+                                                     @RequestHeader(value = "X-Consumer-Share-ID", required = false) String shareId,
+                                                     @RequestHeader(value = "X-Consumer-Operation-ID", required = false) String operationId,
+                                                     @RequestHeader(value = "X-Consumer-User-Meta", required = false) String meta,
+                                                     @PathVariable("id") String id){
+
+        return null;
+    }
+    @GetMapping
+    public ResponseEntity<String> getOnlineStaffPage(){
+        return null;
+    }
+    @PutMapping
+    public ResponseEntity<String> updateStaff(){
+        return null;
+    }
+    @PostMapping
+    public ResponseEntity<String> addStaff(AddOnlineStaffReq addOnlineStaffReq){
+        return  null;
+    }
+}

+ 9 - 0
src/main/java/com/finogeeks/swan/hxaccountsync/entity/AddOnlineStaffReq.java

@@ -0,0 +1,9 @@
+package com.finogeeks.swan.hxaccountsync.entity;
+
+/**
+ * @author Guo Zheng
+ * @date 2020/8/26 4:35 下午
+ */
+public class AddOnlineStaffReq {
+    private String ss;
+}

+ 32 - 0
src/main/java/com/finogeeks/swan/hxaccountsync/entity/OnlineStaffVo.java

@@ -0,0 +1,32 @@
+package com.finogeeks.swan.hxaccountsync.entity;
+
+import lombok.Data;
+
+/**
+ * @author Guo Zheng
+ * @date 2020/8/26 5:11 下午
+ *
+ * */
+@Data
+public class OnlineStaffVo {
+    private String onlineStaffId;
+    private String referenceId;
+    private String maritalStatus;
+    private String isHorseRacing;
+    private String name;
+    private String phone;
+    private String idCardNo;
+    private String businessRank;
+    private String nativePlace;
+    private String highestEducation;
+    private String registeredResidence;
+    private String currentResidentialAddress;
+    private String emergencyName;
+    private String emergencyPhone;
+    private String emergencyRelationship;
+    private String sex;
+    private String birthday;
+    private String nation;
+
+
+}

+ 12 - 0
src/main/java/com/finogeeks/swan/hxaccountsync/entity/UpdateOnlineStaffReq.java

@@ -0,0 +1,12 @@
+package com.finogeeks.swan.hxaccountsync.entity;
+
+import lombok.Data;
+
+/**
+ * @author Guo Zheng
+ * @date 2020/8/26 4:37 下午
+ */
+@Data
+public class UpdateOnlineStaffReq {
+    private String name;
+}