初始化美若彩妆销售平台项目
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.meiruo.cosmetics.mapper;
|
||||
|
||||
import com.meiruo.cosmetics.entity.User;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface UserMapper {
|
||||
|
||||
User selectById(@Param("id") Long id);
|
||||
|
||||
User selectByUsername(@Param("username") String username);
|
||||
|
||||
User selectByPhone(@Param("phone") String phone);
|
||||
|
||||
List<User> selectList(@Param("query") String query);
|
||||
|
||||
int insert(User user);
|
||||
|
||||
int update(User user);
|
||||
|
||||
int delete(@Param("id") Long id);
|
||||
|
||||
int updateStatus(@Param("id") Long id, @Param("status") Integer status);
|
||||
}
|
||||
Reference in New Issue
Block a user