mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-06-24 05:56:38 +00:00
搜索服务完成
This commit is contained in:
@ -26,7 +26,6 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("user")
|
||||
@RequiredArgsConstructor
|
||||
@EnableSwagger2
|
||||
@Slf4j
|
||||
@Api(tags = "用户相关接口")
|
||||
public class UserController extends BaseController {
|
||||
|
@ -5,6 +5,7 @@ import com.java2nb.novel.user.entity.User;
|
||||
import com.java2nb.novel.user.service.UserService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
@ -15,6 +16,7 @@ import springfox.documentation.annotations.ApiIgnore;
|
||||
* @since 2020/5/27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("api/user")
|
||||
@RequiredArgsConstructor
|
||||
@ApiIgnore
|
||||
public class UserApi {
|
||||
@ -25,7 +27,7 @@ public class UserApi {
|
||||
/**
|
||||
* 根据用户名密码查询记录
|
||||
* */
|
||||
@GetMapping("api/queryByUsernameAndPassword")
|
||||
@GetMapping("queryByUsernameAndPassword")
|
||||
public User queryByUsernameAndPassword(String username, String password){
|
||||
return userService.queryByUsernameAndPassword(username,password);
|
||||
|
||||
|
@ -6,7 +6,10 @@ import com.java2nb.novel.user.entity.User;
|
||||
import com.java2nb.novel.user.form.UserForm;
|
||||
|
||||
/**
|
||||
* @author 11797
|
||||
* 用户服务接口
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
public interface UserService {
|
||||
|
||||
|
@ -21,7 +21,10 @@ import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo;
|
||||
import static org.mybatis.dynamic.sql.select.SelectDSL.select;
|
||||
|
||||
/**
|
||||
* @author 11797
|
||||
* 小说服务接口实现
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
|
Reference in New Issue
Block a user