|
@@ -14,10 +14,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
@@ -26,6 +23,7 @@ import java.util.Map;
|
|
|
|
|
|
@Api(tags = "抽奖")
|
|
|
@RestController
|
|
|
+@RequestMapping("${app-config.url.web:}/")
|
|
|
public class LuckDrawController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@@ -39,7 +37,7 @@ public class LuckDrawController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "查询奖品组列表")
|
|
|
@GetMapping(value = "luckDrawGroup/findAll", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
- @PreAuthorize("@pcs.hasPermissions('luckDrawGroup/list')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('luckDrawGroup/findAll')")
|
|
|
public Object luckDrawGroupFindAll(QueryInfo queryInfo) {
|
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
|
MapUtil.populateMap(params, queryInfo);
|