用户表增加推流鉴权KEY
This commit is contained in:
@@ -10,13 +10,14 @@ import java.util.List;
|
||||
@Repository
|
||||
public interface UserMapper {
|
||||
|
||||
@Insert("INSERT INTO user (username, password, roleId, createTime, updateTime) VALUES" +
|
||||
"('${username}', '${password}', '${role.id}', '${createTime}', '${updateTime}')")
|
||||
@Insert("INSERT INTO user (username, password, roleId, pushKey, createTime, updateTime) VALUES" +
|
||||
"('${username}', '${password}', '${role.id}', '${pushKey}', '${createTime}', '${updateTime}')")
|
||||
int add(User user);
|
||||
|
||||
@Update(value = {" <script>" +
|
||||
"UPDATE user " +
|
||||
"SET updateTime='${updateTime}' " +
|
||||
"<if test=\"pushKey != null\">, pushKey='${pushKey}'</if>" +
|
||||
"<if test=\"role != null\">, roleId='${role.id}'</if>" +
|
||||
"<if test=\"password != null\">, password='${password}'</if>" +
|
||||
"<if test=\"username != null\">, username='${username}'</if>" +
|
||||
|
||||
@@ -7,6 +7,7 @@ public class User {
|
||||
private String password;
|
||||
private String createTime;
|
||||
private String updateTime;
|
||||
private String pushKey;
|
||||
private Role role;
|
||||
|
||||
public int getId() {
|
||||
@@ -56,4 +57,12 @@ public class User {
|
||||
public void setRole(Role role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public String getPushKey() {
|
||||
return pushKey;
|
||||
}
|
||||
|
||||
public void setPushKey(String pushKey) {
|
||||
this.pushKey = pushKey;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user