|
|
@@ -27,10 +27,7 @@ import com.ejlchina.searcher.SearchResult;
|
|
|
import com.ejlchina.searcher.util.MapBuilder;
|
|
|
import com.ejlchina.searcher.util.MapUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
@@ -63,7 +60,7 @@ public class ExchangeCodeController {
|
|
|
/**
|
|
|
* 生成兑换码 并导出
|
|
|
*/
|
|
|
- @GetMapping("/createAndExport")
|
|
|
+ @PostMapping("/createAndExport")
|
|
|
@SaCheckPermission("exchangeCode:add")
|
|
|
@Log(module = "兑换码/生成兑换码", businessType = BusinessType.POST, isSaveRequestData = true)
|
|
|
public void createAndExportCode(@RequestBody ExchangeCodeReq exchangeCodeReq, HttpServletResponse response) throws Exception {
|