-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from lianluoyi/dev
V1.37.0.1版本更新
- Loading branch information
Showing
85 changed files
with
2,246 additions
and
187 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
easyink-admin/src/main/java/com/easyink/web/controller/openapi/TransferApiController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.easyink.web.controller.openapi; | ||
|
||
|
||
import com.easyink.common.core.domain.AjaxResult; | ||
import com.easyink.wecom.handler.third.SessionArchiveHandler; | ||
import io.swagger.annotations.Api; | ||
import io.swagger.annotations.ApiOperation; | ||
import lombok.AllArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
import java.io.InputStream; | ||
|
||
/** | ||
* 类名: 对外开放的api接口 | ||
* | ||
* @author : silver_chariot | ||
* @date : 2022/3/14 15:44 | ||
*/ | ||
@RestController | ||
@RequestMapping("/transfer") | ||
@Api(tags = {"迁移接口"}) | ||
@AllArgsConstructor | ||
@Slf4j | ||
public class TransferApiController { | ||
|
||
private final SessionArchiveHandler sessionArchiveHandler; | ||
|
||
@PostMapping("/import/sessionArchive") | ||
@ApiOperation("导入会话存档") | ||
public AjaxResult<String> importSessionArchive(MultipartFile file, @RequestParam String corpId) { | ||
try (InputStream is = file.getInputStream()) { | ||
sessionArchiveHandler.importSessionArchive(is, corpId); | ||
} catch (Exception e) { | ||
log.info("导入会话存档失败: {}", e.getMessage()); | ||
return AjaxResult.error("导入会话存档失败"); | ||
} | ||
return AjaxResult.success(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,6 +146,7 @@ ruoyi: | |
- /wecom/transferData/** | ||
- /actuator/** | ||
- /open_api/** | ||
- /transfer/** | ||
|
||
|
||
# 开发环境配置 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
easyink-common/src/main/java/com/easyink/common/core/page/PageDomainAdvice.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.easyink.common.core.page; | ||
|
||
import com.github.pagehelper.PageHelper; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* 自动邀群repository | ||
* | ||
* @author tigger | ||
* 2023/4/3 17:29 | ||
**/ | ||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class PageDomainAdvice<T> extends PageDomain implements PageInvoke { | ||
|
||
|
||
public PageDomainAdvice() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public void page() { | ||
PageHelper.startPage(this.getPageNum(), this.getPageSize()); | ||
} | ||
|
||
@Override | ||
public void clear() { | ||
PageHelper.clearPage(); | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
easyink-common/src/main/java/com/easyink/common/core/page/PageInvoke.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.easyink.common.core.page; | ||
|
||
/** | ||
* 分页执行函数 | ||
* | ||
* @author tigger | ||
* 2023/4/3 17:29 | ||
**/ | ||
public interface PageInvoke { | ||
|
||
/** | ||
* 分页方法 | ||
*/ | ||
void page(); | ||
|
||
/** | ||
* 清除分页 | ||
*/ | ||
void clear(); | ||
} |
Oops, something went wrong.