123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package com.malk.huagao.controller;
- import com.malk.huagao.service.HuaGaoService;
- import com.malk.server.common.McException;
- import com.malk.server.common.McR;
- import com.malk.utils.UtilServlet;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import javax.servlet.http.HttpServletRequest;
- import java.util.Map;
- @Slf4j
- @RestController
- @RequestMapping("/hg")
- public class HuaGaoController {
- @Autowired
- private HuaGaoService huaGaoService;
- @GetMapping("/test")
- public McR test() {
- return McR.success();
- }
- /**
- * 创建投资人用户
- */
- @PostMapping("/user/sync")
- McR syncUser() {
- log.info("syncUser");
- huaGaoService.syncDingTalk_exclusive();
- return McR.success();
- }
- /**
- * 重置密码流程
- */
- @PostMapping("/reset")
- McR resetPwd(HttpServletRequest request) {
- Map data = UtilServlet.getParamMap(request);
- log.info("reset, {}", data);
- McException.assertParamException_Null(data, "userId", "password");
- huaGaoService.resetPwd(data);
- return McR.success();
- }
- /**
- * 获取工作时长详情
- */
- @PostMapping("details")
- McR details(@RequestBody Map<String,Object> data) {
- huaGaoService.getCheckWorkDateDetails(data);
- return McR.success();
- }
- }
|