YelinCui | 09ee07c | 2025-06-07 05:09:55 +0800 | [diff] [blame] | 1 | package com.example.myproject.mapper; |
2 | |||||
3 | import com.example.myproject.entity.AuditRecord; | ||||
4 | import com.example.myproject.entity.BannedUser; | ||||
5 | import org.apache.ibatis.annotations.Insert; | ||||
6 | import org.apache.ibatis.annotations.Mapper; | ||||
7 | |||||
8 | |||||
9 | @Mapper | ||||
10 | public interface BannedUserMapper { | ||||
11 | |||||
12 | @Insert("INSERT INTO banned_user (user_id, reason, create_time) " + | ||||
13 | "VALUES (#{userId}, #{reason}, #{createTime})") | ||||
14 | void insert(BannedUser bannedUser); | ||||
15 | } |