邝工测试
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
package com.chaozhanggui.admin.system.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.chaozhanggui.common.system.config.RespBody;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author lyf
|
||||||
|
*/
|
||||||
|
@CrossOrigin(origins = "*")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("user")
|
||||||
|
@Slf4j
|
||||||
|
public class PromotionImageController {
|
||||||
|
|
||||||
|
|
||||||
|
// public RespBody getPromotionImage(){
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
|
@PostMapping("/testRequest")
|
||||||
|
public RespBody testRequest(){
|
||||||
|
int randomNumber = new Random().nextInt(6);
|
||||||
|
List<Object> objects = new ArrayList<>();
|
||||||
|
return new RespBody(String.valueOf(randomNumber),objects);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.chaozhanggui.admin.system.service;
|
||||||
|
|
||||||
|
import com.chaozhanggui.common.system.config.RespBody;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author lyf
|
||||||
|
*/
|
||||||
|
public class PromotionImageService {
|
||||||
|
|
||||||
|
// public RespBody getPromotionImage(){
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user