package com.yh.saas.platform.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * APP功能点击次数记录表
 * </p>
 *
 * @author wxg
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("common_func_click_info")
public class FuncClickInfo extends BaseModel<FuncClickInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(type = IdType.INPUT)
	private String id;
	/**
	 * 公司ID
	 */
	private String compId;
	/**
	 * 用户ID
	 */
	private String userId;
	/**
	 * 用户名称
	 */
	private String userName;
	/**
	 * 功能类型：1 新增证书 2 证书换证 3 证书检验
	 */
	private Integer funcType;
	/**
	 * 功能名称
	 */
	private String funcName;
	/**
	 * 点击次数
	 */
	private Long clickCount;
	

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	/**
	 * 查询字段
	 */
	public static class QueryFields {
		public static final String ID = "id";

		public static final String COMP_ID = "comp_id";

		public static final String USER_ID = "user_id";

		public static final String CLICK_COUNT = "click_count";

		public static final String FUNC_TYPE = "func_type";

		private QueryFields() {

		}
	}

}
