提交 c5ee68c9 编写于 作者: dong.an's avatar dong.an

Merge branch 'dev-20200120-function' into 'release'

“20200120 添加性能测试接口

添加性能测试需要的加密接口

See merge request !13
流水线 #21760 已失败 于阶段
in 0 second
package com.pica.cloud.account.account.server.controller;
import com.pica.cloud.account.account.server.util.AESUtil;
import com.pica.cloud.foundation.entity.PicaResponse;
import io.swagger.annotations.Api;
import org.apache.commons.lang.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Created on 2020/1/20 15:03
* author:crs
* Description:性能测试需要
*/
@Api(description = "性能测试接口")
@RequestMapping("/function")
@RestController
public class TestMobileController {
@GetMapping("/encry")
public PicaResponse getEncryMobile(String mobile) {
if (StringUtils.isNotEmpty(mobile)) {
return PicaResponse.toResponse(AESUtil.encryptV0(mobile));
} else {
return PicaResponse.toResponse(null, "数据为空");
}
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册