发表于: 2025-06-24 20:39:09

0 18


今天完成的事情:(一定要写非常细致的内容,比如说学会了盒子模型,了解了Margin)

package org.example.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

public class Role {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String name;
private Long createAt;
private String author;


public Role() {
}

public Role(int id, String name, Long createAt, String author) {
this.id = id;
this.name = name;
this.createAt = createAt;
this.author = author;
}

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Long getCreateAt() {
return createAt;
}

public void setCreateAt(Long createAt) {
this.createAt = createAt;
}

public String getAuthor() {
return author;
}

public void setAuthor(String author) {
this.author = author;
}

@Override
   public String toString() {
return "Role{" +
"id=" + id +
", name='" + name + '\'' +
", createAt=" + createAt +
", author='" + author + '\'' +
'}';
}
}
package org.example.mapper;

import org.example.model.Role;

import java.util.List;

public interface RoleMapper {
List<Role> selectAll();
Role selectByName(String name);
int insert(Role role);
int update(Role role);
int delete(Long id);
}

明天计划的事情:(一定要写非常细致的内容)
遇到的问题:(遇到什么困难,怎么解决的)
收获:(通过今天的学习,学到了什么知识)


返回列表 返回列表
评论

    分享到