package me.zhengjie.modules.system.rest; import me.zhengjie.annotation.rest.AnonymousGetMapping; import me.zhengjie.annotation.rest.AnonymousPostMapping; import me.zhengjie.appapi.entity.response.BaseResponse; import me.zhengjie.modules.system.entity.request.notaryoffice.NotaryOfficeCreateReq; import me.zhengjie.modules.system.entity.request.notaryoffice.NotaryOfficeQueryReq; import me.zhengjie.modules.system.entity.response.notaryoffice.NotaryOfficeQueryRsp; import me.zhengjie.modules.system.service.NotaryOfficeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * 公证处 前端控制器 * * @author Erwin Feng * @since 2022-03-28 */ @RestController @Validated @RequestMapping("/notaryOffice") public class NotaryOfficeController { @Autowired private NotaryOfficeService notaryOfficeService; /** * 公证处 查询 * * @return */ @AnonymousPostMapping("/detail") public BaseResponse detail() { return notaryOfficeService.detail(); } /** * 公证处 查询 * * @return */ @RequestMapping("/query") public BaseResponse> query(@RequestBody NotaryOfficeQueryReq req) { return notaryOfficeService.query(req); } /** * 公证处 新增 * * @return */ @RequestMapping("/create") public BaseResponse create(@RequestBody NotaryOfficeCreateReq req) { return notaryOfficeService.create(req); } /** * 公证处 编辑 * * @return */ @RequestMapping("/update") public BaseResponse update(@RequestBody NotaryOfficeCreateReq req) { return notaryOfficeService.update(req); } /** * 公证处 删除 * * @return */ @RequestMapping("/delete") public BaseResponse delete(@RequestBody String[] ids) { return notaryOfficeService.delete(ids); } /** * 发送授权验证码 * @param userId * @return */ @RequestMapping("/sendAuthMessage") public BaseResponse sendAuthMessage(@RequestParam String userId){ return notaryOfficeService.sendAuthMessage(userId); } /** * 确认授权验证码,完成签名授权 */ @RequestMapping("/verifyAuthMessage") public BaseResponse verifyAuthMessage(@RequestBody NotaryOfficeCreateReq req){ return notaryOfficeService.verifyAuthMessage(req); } /** * 修改公证书自动生成标志 * @param req * @return */ @AnonymousPostMapping("/modifyAutoGenerate") public BaseResponse modifyAutoGenerate(@RequestBody NotaryOfficeCreateReq req){ return notaryOfficeService.modifyAutoGenerate(req); } /** * 上传公证处签章 * @param req * @return */ @AnonymousPostMapping("/uploadSeal") public BaseResponse uploadSeal(@RequestBody NotaryOfficeCreateReq req){ return notaryOfficeService.uploadSeal(req); } /** * 更新自动公证书相关信息 * @param req * @return */ @AnonymousPostMapping("/modifyAutoGenerateInfo") public BaseResponse modifyAutoGenerateInfo(@RequestBody NotaryOfficeCreateReq req){ return notaryOfficeService.modifyAutoGenerateInfo(req); } /** * 查询证书信息 * @param req * @return */ @AnonymousPostMapping("/queryCertificate") public BaseResponse queryCertificate(@RequestBody NotaryOfficeCreateReq req){ return notaryOfficeService.queryCertificate(req); } /** * 查询授权状态 * @param req * @return */ @AnonymousPostMapping("/getAuthStatus") public BaseResponse getAuthStatus(@RequestBody NotaryOfficeCreateReq req){ return notaryOfficeService.getAuthStatus(req); } }