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

com.github.javaclub.base.domain.query.ConfigListQuery Maven / Gradle / Ivy

/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
 *
 * @(#)ConfigListQuery.java  2023-09-08
 *
 * Copyright (c) 2023 - 2099. All Rights Reserved.
 *
 */

package com.github.javaclub.base.domain.query;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.javaclub.base.domain.ConfigList;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ConfigListQuery 查询条件
 *
 * @version $Id: ConfigListQuery.java 2023-09-08 16:25:36 Exp $
 */
@Data
@Builder
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "ConfigList 查询条件")
public class ConfigListQuery extends BaseQuery {

	private static final long serialVersionUID = 1694161536351L;
	
	@ApiModelProperty(value = "配置父ID")
	private Long parentId;

	@ApiModelProperty(value = "内容格式: [text-普通文本 xml-XML文件内容  properties-属性格式内容  yaml-YAML格式内容 bash-SHELL脚本内容]", allowableValues="text, xml, properties, yaml, bash")
	private String format;

	
	public ConfigListQuery() {
	}

	public QueryWrapper queryWrapper() {
		QueryWrapper q = super.buildBaseQuery();
		
		q.eq(null != getParentId(), "parent_id", getParentId());
		q.eq(null != getFormat(), "format", getFormat());

		return q;
	}
	
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy