| | |
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import com.moral.common.util.Crypto;
|
| | | import com.moral.entity.*;
|
| | | import com.moral.service.*;
|
| | | import com.moral.util.MessageUtils;
|
| | | import com.taobao.api.ApiException;
|
| | | import org.apache.commons.lang3.StringUtils;
|
| | |
| | | import org.springframework.web.bind.annotation.*;
|
| | |
|
| | | import com.moral.common.bean.AppData;
|
| | | import com.moral.entity.Device;
|
| | | import com.moral.entity.MonitorPoint;
|
| | | import com.moral.entity.OperateUser;
|
| | | import com.moral.entity.Organization;
|
| | | import com.moral.service.DeviceService;
|
| | | import com.moral.service.MonitorPointService;
|
| | | import com.moral.service.OperateUserService;
|
| | | import com.moral.service.OrganizationService;
|
| | |
|
| | | /**
|
| | | * The Class MobileController.
|
| | |
| | | @Resource
|
| | | private MonitorPointService monitorPointService;
|
| | |
|
| | | @Resource
|
| | | private ProfessionService professionService;
|
| | |
|
| | | /**
|
| | | * Mobile login.登录
|
| | | *
|
| | |
| | | * @param password the password
|
| | | * @return the result bean
|
| | | */
|
| | | @PostMapping("accountlogin")
|
| | | @RequestMapping("accountlogin")
|
| | | public AppData<OperateUser> mobileLogin(String username, String password) {
|
| | | OperateUser operateUser = operateUserService.mobileLogin(username,password);
|
| | | return new AppData<OperateUser>(operateUser);
|
| | |
| | | return apiData;
|
| | | }
|
| | | }
|
| | |
|
| | | @GetMapping("profession")
|
| | | public AppData<List<Profession>> profession(){
|
| | |
|
| | | List<Profession> professions = professionService.getProfessiontList();
|
| | | return new AppData<List<Profession>>(professions);
|
| | | }
|
| | | }
|