From 37f3afebbec6b60aacc1d87363f59f5d1aa5fe68 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期三, 28 九月 2022 11:10:48 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/mapper/data/TokenMapper.java | 34 +++++++++++++++------------------- 1 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/lf/server/mapper/data/TokenMapper.java b/src/main/java/com/lf/server/mapper/data/TokenMapper.java index 7fc64a5..159bcc5 100644 --- a/src/main/java/com/lf/server/mapper/data/TokenMapper.java +++ b/src/main/java/com/lf/server/mapper/data/TokenMapper.java @@ -2,6 +2,7 @@ import com.lf.server.entity.data.DictEntity; +import com.lf.server.entity.data.TokenEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.web.bind.annotation.ResponseBody; @@ -19,36 +20,34 @@ /** * 鏍规嵁琛ㄥ悕鏌ヨ璁板綍鏁� * - * @param tab 琛ㄥ悕 + * @param token 琛ㄥ悕 * @return 璁板綍鏁� */ - public Integer selectCount(String tab); + public Integer selectCount(String token); /** * 鏍规嵁琛ㄥ悕鍒嗛〉鏌ヨ * - * @param tab 琛ㄥ悕 + * @param token 琛ㄥ悕 * @param limit 璁板綍琛� * @param offset 鍋忕Щ閲� * @return 鍒楄〃 */ - public List<DictEntity> selectByPage(String tab, Integer limit, Integer offset); + public List<TokenEntity> selectByPage(String token, Integer limit, Integer offset); /** * 娣诲姞鏁版嵁 - * - * @param dictEntity + * @param tokenEntity * @return */ - public Integer insertDict(DictEntity dictEntity); + public Integer insertToken(TokenEntity tokenEntity); /** * 鎵归噺娣诲姞 - * - * @param dictEntity + * @param tokenEntity * @return */ - public Integer insertDicts(List<DictEntity> dictEntity); + public Integer insertTokens(List<TokenEntity> tokenEntity); /** * 鍒櫎鏁版嵁 @@ -56,7 +55,7 @@ * @param id * @return */ - public Integer deleteDict(int id); + public Integer deleteToken(int id); /** * 鎵归噺鍒犻櫎 @@ -64,30 +63,27 @@ * @param ids * @return */ - public Integer deleteDicts(List<Integer> ids); + public Integer deleteTokens(List<Integer> ids); /** * 淇敼鏁版嵁 - * - * @param dictEntity + * @param tokenEntity * @return */ - public Integer updateDict(DictEntity dictEntity); + public Integer updateToken(TokenEntity tokenEntity); /** * 鏌ヨ鍗曟潯鏁版嵁 - * * @param id * @return */ - public DictEntity selectDict(int id); + public TokenEntity selectToken(int id); /** * 鏌ヨ鍏ㄩ儴鏁版嵁 - * * @return */ - public List<DictEntity> selectDictAll(); + public List<TokenEntity> selectTokenAll(); -- Gitblit v1.9.3