Skip to content

Commit b7d4853

Browse files
committed
核心包
1 parent 66dad37 commit b7d4853

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

core/src/main/java/info/xiaomo/core/base/BaseModel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
@Data
3131
@AllArgsConstructor
3232
@NoArgsConstructor
33-
public abstract class BaseModel implements Serializable{
33+
public abstract class BaseModel implements Serializable {
3434

3535
@Id
3636
@GeneratedValue(strategy = GenerationType.AUTO)
3737
@Column(name = "Id")
38-
private long id;
38+
private Long id;
3939

4040
@Column(name = "Name")
4141
private String name;

core/src/main/java/info/xiaomo/core/base/BaseService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public interface BaseService<T> {
1818

1919
Page<T> findAll(int start, int pageSize);
2020

21-
boolean delById(Long id);
21+
Boolean delById(Long id);
2222

23-
boolean delByName(String name);
23+
Boolean delByName(String name);
2424

25-
boolean add(T model);
25+
Boolean add(T model);
2626

27-
boolean update(T model);
27+
Boolean update(T model);
2828

29-
boolean delByIds(List<Long> ids);
29+
Boolean delByIds(List<Long> ids);
3030
}

0 commit comments

Comments
 (0)