沈斌
2018-05-04 7721bc9cc75687d019c8331fa874fe84c6617738
运维app
1 files modified
8 ■■■■ changed files
src/main/java/com/moral/controller/MobileController.java 8 ●●●● patch | view | raw | blame | history
src/main/java/com/moral/controller/MobileController.java
@@ -8,11 +8,7 @@
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.moral.common.bean.AppData;
import com.moral.entity.Device;
@@ -55,7 +51,7 @@
     * @param password the password
     * @return the result bean
     */
    @GetMapping("accountlogin")
    @PostMapping("accountlogin")
    public AppData<OperateUser> mobileLogin(String username, String password) {
        OperateUser operateUser = operateUserService.mobileLogin(username,password);
        return new AppData<OperateUser>(operateUser);