新增 微信第三方平台 拼接授权链接接口

This commit is contained in:
Lemon
2023-07-31 14:37:16 +08:00
parent f079eea109
commit e73cc875c6
3 changed files with 110 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.domain.AuthorizationEventResult;
import com.jsowell.pile.domain.agentDev.CategoryInfo;
import com.jsowell.pile.dto.agentDev.CommitCodeDTO;
import com.jsowell.pile.dto.agentDev.ConcatenateAuthLinkDTO;
import com.jsowell.pile.dto.agentDev.GetComponentTokenDTO;
import com.jsowell.pile.dto.agentDev.SubmitAuditDTO;
import com.jsowell.pile.vo.agentDev.AuthInfoVO;
@@ -108,6 +109,27 @@ public class AgentDevController extends BaseController {
return response;
}
/**
* 拼接授权链接
*
* @param dto
* @return
*/
@PostMapping("/concatenateAuthLinks")
public RestApiResponse<?> concatenateAuthLinks(@RequestBody ConcatenateAuthLinkDTO dto) {
logger.info("第三方平台 拼接授权链接 params:{}", JSONObject.toJSONString(dto));
RestApiResponse<?> response = null;
try {
String url = agentDevService.concatenateAuthLinks(dto);
response = new RestApiResponse<>(url);
} catch (Exception e) {
logger.error("第三方平台 拼接授权链接 error, ", e);
response = new RestApiResponse<>(e);
}
logger.info("第三方平台 拼接授权链接 result:{}", response);
return response;
}
/**
* 使用授权码获取授权信息