diff --git a/src/main/java/com/totopia/server/modules/special/entity/FixBonusEntity.java b/src/main/java/com/totopia/server/modules/special/entity/FixBonusEntity.java new file mode 100644 index 0000000..b414f56 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/special/entity/FixBonusEntity.java @@ -0,0 +1,46 @@ +package com.totopia.server.modules.special.entity; + +import com.totopia.server.commons.data.entity.DateAuditEntity; +import lombok.*; +import lombok.experimental.SuperBuilder; + +import javax.persistence.*; + +@Entity +@Table(name = "fix_bonus") +@Data +@SuperBuilder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@Builder +public class FixBonusEntity extends DateAuditEntity { + @Id + @GeneratedValue(generator = "fix_bonus_generator") + @SequenceGenerator(name = "fix_bonus_generator", sequenceName = "fix_bonus_sequence", initialValue = 1) + private Short id; + + @Basic + @Column(name = "game_type", nullable = false, length = 100) + private String gameType; + + @Basic + @Column(name = "game_description", nullable = false, length = 200) + private String gameDescription; + + @Basic + @Column(name = "user_description", nullable = false, length = 200) + private String userDescription; + + @Basic + @Column(name = "odds", nullable = false, length = 100) + private String odds; + + @Basic + @Column(name = "folder", nullable = false) + private Short folder; + + @Basic + @Column(name = "allow", nullable = true) + private Boolean allow = true; +} diff --git a/src/main/java/com/totopia/server/modules/special/repository/FixBonusRepository.java b/src/main/java/com/totopia/server/modules/special/repository/FixBonusRepository.java new file mode 100644 index 0000000..b835cf1 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/special/repository/FixBonusRepository.java @@ -0,0 +1,7 @@ +package com.totopia.server.modules.special.repository; + +import com.totopia.server.modules.special.entity.FixBonusEntity; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface FixBonusRepository extends JpaRepository { +} diff --git a/src/main/java/com/totopia/server/modules/special/service/FixBonusService.java b/src/main/java/com/totopia/server/modules/special/service/FixBonusService.java new file mode 100644 index 0000000..17b6b14 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/special/service/FixBonusService.java @@ -0,0 +1,32 @@ +package com.totopia.server.modules.special.service; + +import com.totopia.server.modules.special.entity.FixBonusEntity; +import com.totopia.server.modules.special.repository.FixBonusRepository; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class FixBonusService { + + @Autowired + private FixBonusRepository fixBonusRepository; + + + public void save(FixBonusEntity bonusEntity) { + + } + + public FixBonusEntity getFixBonusById(Short id) { + return null; + } + + public List getAll() { + return null; + } + + public Short removeById(Short id) { + return null; + } +}