IUserService.java 538 字节
Newer Older
Q
qinyingjie 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package com.kwan.springbootkwan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kwan.springbootkwan.entity.User;

import java.util.List;

public interface IUserService extends IService<User> {

    /**
     * 获取所有用户
     *
     * @return
     */
    List<User> getUsers();

    /**
     * 获取一个用户
     *
     * @return
     */
    User getUserById(Integer id);

24 25 26 27 28 29 30
    /**
     * 根据姓名查询
     *
     * @param sex
     * @return
     */
    User getUserByName(String sex);
Q
qinyingjie 已提交
31
}