mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-20 05:27:34 +00:00
fix(deserialize):
This commit is contained in:
@@ -7,6 +7,9 @@ import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* Con của AbstractModel phải có getter, setter & field không được final thì mới deserialize được
|
||||
*/
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
@Setter
|
||||
|
||||
@@ -3,8 +3,10 @@ package com.miti99.storescraperbot.model;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class Admin extends AbstractModel<String> {
|
||||
final Set<Long> groups = new HashSet<>();
|
||||
Set<Long> groups = new HashSet<>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user