|
@@ -11,12 +11,10 @@ import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.domain.Sort;
|
|
import org.springframework.data.domain.Sort;
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -53,4 +51,11 @@ public class IntegralController extends BaseController{
|
|
HttpServletRequest request){
|
|
HttpServletRequest request){
|
|
return medalLogic.getMedals(keyword,userId);
|
|
return medalLogic.getMedals(keyword,userId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @RequestMapping(value = UrlConstants.API_MEDAL,method = RequestMethod.DELETE)
|
|
|
|
+ public boolean getIntegrals(@RequestParam(value = "medalId")Long medalId,
|
|
|
|
+ HttpServletRequest request){
|
|
|
|
+ medalLogic.deleteMedal(medalId);
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
}
|
|
}
|