提交 308626de 编写于 作者: rushui.chen's avatar rushui.chen

“20200120 添加性能测试接口

上级 063dbeae
流水线 #20985 已失败 于阶段
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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册