고정보너스 생
This commit is contained in:
parent
bdbc20a9de
commit
e42d1b1908
|
@ -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;
|
||||
}
|
|
@ -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<FixBonusEntity, Short> {
|
||||
}
|
|
@ -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<FixBonusEntity> getAll() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Short removeById(Short id) {
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user