Commit 098582cf authored by 高宇's avatar 高宇

会员码接口

parent 1ec00ff2
...@@ -9,6 +9,7 @@ import com.emall.flash.service.system.ComplaintService; ...@@ -9,6 +9,7 @@ import com.emall.flash.service.system.ComplaintService;
import com.emall.flash.service.system.ManagerService; import com.emall.flash.service.system.ManagerService;
import com.emall.flash.service.system.MemberBenefitsService; import com.emall.flash.service.system.MemberBenefitsService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -35,7 +36,7 @@ public class MemberBenefitsController { ...@@ -35,7 +36,7 @@ public class MemberBenefitsController {
/**添加投诉建议**/ /**添加投诉建议**/
@RequestMapping(value = "/addComplaint", method = RequestMethod.POST) @RequestMapping(value = "/addComplaint", method = RequestMethod.POST)
public Object add(Complaint complaint){ public Object add(@RequestBody Complaint complaint){
complaint.setDelFlag(0); complaint.setDelFlag(0);
complaint.setStatus(0); complaint.setStatus(0);
User loginUser = managerService.get(JwtUtil.getUserId()); User loginUser = managerService.get(JwtUtil.getUserId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment