parent
1bd8c0b433
commit
75fb525425
@ -0,0 +1,27 @@
|
||||
package enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @Author: yawei.huang
|
||||
* @Package: enums
|
||||
* @Project: luoo_parent
|
||||
* @Date: 2024/5/11 15:33
|
||||
* @Filename: ApproveStateEnum
|
||||
* @Describe:
|
||||
*/
|
||||
@Getter
|
||||
public enum ApproveStateEnum {
|
||||
SUCCESS(1, "成功"),
|
||||
|
||||
FAIL(2, "失败"),
|
||||
;
|
||||
|
||||
private final Integer code;
|
||||
private final String desc;
|
||||
|
||||
ApproveStateEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @Author: yawei.huang
|
||||
* @Package: enums
|
||||
* @Project: luoo_parent
|
||||
* @Date: 2024/5/11 15:33
|
||||
* @Filename: ApproveTypeEnum
|
||||
* @Describe:
|
||||
*/
|
||||
@Getter
|
||||
public enum ApproveTypeEnum {
|
||||
|
||||
ALBUM(1, "专辑审核"),
|
||||
;
|
||||
|
||||
|
||||
private final Integer code;
|
||||
private final String desc;
|
||||
|
||||
ApproveTypeEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.luoo.music.dao;
|
||||
|
||||
import com.luoo.music.pojo.Approve;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
|
||||
/**
|
||||
* @Author: yawei.huang
|
||||
* @Package: com.luoo.music.dao
|
||||
* @Project: luoo_parent
|
||||
* @Date: 2024/5/11 15:37
|
||||
* @Filename: AlbumDao
|
||||
* @Describe:
|
||||
*/
|
||||
public interface ApproveDao extends JpaRepository<Approve,String>, JpaSpecificationExecutor<Approve> {
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.luoo.music.pojo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
import org.springframework.data.annotation.LastModifiedDate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author: yawei.huang
|
||||
* @Package: com.luoo.music.pojo
|
||||
* @Project: luoo_parent
|
||||
* @Date: 2024/5/11 15:17
|
||||
* @Filename: Approve
|
||||
* @Describe:
|
||||
*/
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
@Entity
|
||||
@Table(name = "tb_approve")
|
||||
public class Approve implements Serializable {
|
||||
|
||||
@Id
|
||||
@ApiModelProperty("id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("tb_user表id")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty("申请类型 1-专辑审核")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("申请状态 0-待审批 1-审批通过 2-审批成功")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty("拒绝理由")
|
||||
private String content;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty("创建时间")
|
||||
@CreatedDate
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty("修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@LastModifiedDate
|
||||
private Date modifyTime;
|
||||
|
||||
}
|
Loading…
Reference in new issue