All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.blankcat.dto.interaction.SearchLayout Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package cn.blankcat.dto.interaction;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
// SearchLayout 搜索结果的布局
public class SearchLayout {

    // LayoutType 布局类型
    public enum LayoutType{
        LAYOUT_TYPE_IMAGE_TEXT(0);
        private final int value;
        LayoutType(int value){
            this.value = value;
        }
        @JsonValue
        public int getValue(){
            return value;
        }
    }

    // ActionType 每行数据的点击行为
    public enum ActionType{
        ACTION_TYPE_SEND_ARK(0);
        private final int value;
        ActionType(int value){
            this.value = value;
        }
        @JsonValue
        public int getValue(){
            return value;
        }
    }

    private LayoutType LayoutType;
    private ActionType actionType;
    private String title;
    private List records;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy