TopicStatusEnum.java 545 Bytes
Newer Older
刘基明's avatar
刘基明 committed
1
package com.tanpu.community.api.enums;
刘基明's avatar
刘基明 committed
2 3 4

public enum TopicStatusEnum {

刘基明's avatar
刘基明 committed
5 6
    HOTTEST(1,"最热"),
    NEWEST(2,"最新");;
刘基明's avatar
刘基明 committed
7 8

    private Integer code;
刘基明's avatar
刘基明 committed
9 10 11 12 13 14
    private String type;

    TopicStatusEnum(Integer code, String type) {
        this.code = code;
        this.type = type;
    }
刘基明's avatar
刘基明 committed
15 16 17 18 19 20 21 22 23

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

刘基明's avatar
刘基明 committed
24 25
    public String getType() {
        return type;
刘基明's avatar
刘基明 committed
26 27
    }

刘基明's avatar
刘基明 committed
28 29
    public void setType(String type) {
        this.type = type;
刘基明's avatar
刘基明 committed
30 31
    }
}