|
@@ -6,6 +6,7 @@ import com.qmth.boot.core.exception.ParameterException;
|
|
import com.qmth.ops.api.constants.OpsApiConstants;
|
|
import com.qmth.ops.api.constants.OpsApiConstants;
|
|
import com.qmth.ops.api.security.AdminSession;
|
|
import com.qmth.ops.api.security.AdminSession;
|
|
import com.qmth.ops.biz.domain.User;
|
|
import com.qmth.ops.biz.domain.User;
|
|
|
|
+import com.qmth.ops.biz.query.UserQuery;
|
|
import com.qmth.ops.biz.service.UserService;
|
|
import com.qmth.ops.biz.service.UserService;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -32,4 +33,9 @@ public class UserController {
|
|
}
|
|
}
|
|
return new AdminSession(user);
|
|
return new AdminSession(user);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @PostMapping("/query")
|
|
|
|
+ public UserQuery query(UserQuery query) {
|
|
|
|
+ return userService.query(query);
|
|
|
|
+ }
|
|
}
|
|
}
|