| | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.interfaces.OperLog; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | 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.panzhihua.auth.model.dos.LoginBody; |
| | | import com.panzhihua.auth.service.LoginService; |
| | |
| | | */ |
| | | @OperLog(operModul = "小程序登录") |
| | | @PostMapping("/loginApplets") |
| | | public R loginApplets(@RequestParam("openId") String openId) { |
| | | LoginReturnVO loginReturnVO = loginService.loginApplets(openId); |
| | | public R loginApplets(@RequestParam("openId") String openId,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginApplets(openId,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "运营后台登录") |
| | | @PostMapping("/loginAppletsBackStage") |
| | | public R loginAppletsBackStage(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginAppletsBackStage(account, password,this.getAppId()); |
| | | public R loginAppletsBackStage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginAppletsBackStage(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "社区后台登录") |
| | | @PostMapping("/loginCommunityBackage") |
| | | public R loginCommunityBackage(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginCommunityBackage(account, password,this.getAppId()); |
| | | public R loginCommunityBackage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginCommunityBackage(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "商家后台登录") |
| | | @PostMapping("/loginShopBackStage") |
| | | public R loginShopBackStage(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginShopBackStage(account, password,this.getAppId()); |
| | | public R loginShopBackStage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginShopBackStage(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "网格综治app登录") |
| | | @PostMapping("/loginGridApp") |
| | | public R loginGridApp(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnsVO loginReturnVO = loginService.loginGridApp(account, password,this.getAppId()); |
| | | public R loginGridApp(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnsVO loginReturnVO = loginService.loginGridApp(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "网格综治后台登录") |
| | | @PostMapping("/loginGridBackstage") |
| | | public R loginGridBackstage(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginGridBackstage(account, password,this.getAppId()); |
| | | public R loginGridBackstage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginGridBackstage(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "城管后台登录") |
| | | @PostMapping("/loginCgBackage") |
| | | public R loginCgBackage(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginCgBackage(account, password,this.getAppId()); |
| | | public R loginCgBackage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginCgBackage(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "一键报警APP登录 ") |
| | | @PostMapping("/loginAlarmApp") |
| | | public R loginAlarmApp(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnsVO loginReturnVO = loginService.loginAlarmApp(account, password,this.getAppId()); |
| | | public R loginAlarmApp(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnsVO loginReturnVO = loginService.loginAlarmApp(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "便民服务商家后台登录 ") |
| | | @PostMapping("/loginMerchantBackStage") |
| | | public R loginMerchantBackStage(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginMerchantBackStage(account, password,this.getAppId()); |
| | | public R loginMerchantBackStage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginMerchantBackStage(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @OperLog(operModul = "西区大屏登录") |
| | | @PostMapping("/loginXQDP") |
| | | public R loginXQDP(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginXQDP(account, password,this.getAppId()); |
| | | public R loginXQDP(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginXQDP(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/loginMcsUser") |
| | | @OperLog(operModul = "微商业街用户登录") |
| | | public R loginMcsUser(@RequestParam("account") String account, @RequestParam("password") String password) { |
| | | LoginReturnVO loginReturnVO = loginService.loginMcsUser(account, password,this.getAppId()); |
| | | public R loginMcsUser(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginMcsUser(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | | @GetMapping("/tfLogin") |
| | | public R tfLogin(@RequestParam("account")String account,@RequestParam("password")String password,@RequestParam("appid")String appid){ |
| | | LoginReturnVO loginReturnVO=loginService.tfLogin(account,password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | | /** |
| | | * 电动车商城后台用户登录 |
| | | * |
| | | * @param account |
| | | * 账户 |
| | | * @param password |
| | | * 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | @PostMapping("/loginBatteryUser") |
| | | public R loginBatteryUser(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginBatteryUser(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | } |