-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
127 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 11 additions & 10 deletions
21
...e-start/src/main/java/com/zhang/springboot/blog/fankestart/repository/UserRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
package com.zhang.springboot.blog.fankestart.repository; | ||
|
||
import com.zhang.springboot.blog.fankestart.entity.User; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author created by Zhangdazhuang | ||
* @version v.0.1 | ||
* @date 2018/10/23 | ||
* @备注 测试 | ||
* @备注 继承CrudRepository,有各种实现 | ||
**/ | ||
public interface UserRepository { | ||
public interface UserRepository extends CrudRepository<User, Long> { | ||
/** | ||
* 创建或者修改用户 | ||
* | ||
* @param user | ||
* @return | ||
*/ | ||
public User saveOrUpdateUser(User user); | ||
/* public User saveOrUpdateUser(User user); | ||
/** | ||
*//** | ||
* 删除用户 | ||
* | ||
* @param id | ||
*/ | ||
*//* | ||
public void deleteUser(Long id); | ||
/** | ||
*//** | ||
* 根据id穿用户 | ||
* | ||
* @param id | ||
* @return | ||
*/ | ||
*//* | ||
public User getUserById(Long id); | ||
/** | ||
*//** | ||
* 获取用户列表 | ||
* | ||
* @return | ||
*/ | ||
*//* | ||
public List<User> listUser(); | ||
|
||
*/ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters