main
parent
d73ad877f0
commit
155b5532da
|
|
@ -65,10 +65,8 @@ public class PayController extends BaseController
|
|||
|
||||
@RequestMapping("/generateCode")
|
||||
@ApiOperation(value = "生成兑换码", notes = "生成兑换码", httpMethod = "POST")
|
||||
public String generateCode(String password,Integer num,HttpServletResponse response){
|
||||
if(!password.equals("bingyu_123")){
|
||||
return "------password error------";
|
||||
}
|
||||
public String generateCode(ExchangeArg exchangeArg,HttpServletResponse response){
|
||||
Integer num = exchangeArg.getNum();
|
||||
if(num>10000){
|
||||
return "------num error------";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
package com.ruoyi.app.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 城市数据对象 app_city
|
||||
*
|
||||
* @author wyh
|
||||
* @date 2024-04-24
|
||||
*/
|
||||
@Data
|
||||
public class ExchangeArg
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer num;
|
||||
}
|
||||
Loading…
Reference in New Issue