package com.deloitte.system.model;
|
|
import com.common.annotation.Table;
|
import com.common.core.domain.BaseModel;
|
|
/**
|
* @author 廖振钦
|
* @date 2022-01-17
|
*/
|
|
@Table(tableName = "app_config", clazz = AppConfig.class)
|
public class AppConfig extends BaseModel<AppConfig> {
|
|
public static final AppConfig dao = new AppConfig();
|
|
public String appid(){
|
return getStr("app_id");
|
}
|
|
public AppConfig appid(String appid){
|
set("app_id", appid);
|
return this;
|
}
|
|
public String appsecret(){
|
return getStr("app_secret");
|
}
|
|
public AppConfig appsecret(String appsecret){
|
set("app_secret", appsecret);
|
return this;
|
}
|
|
public AppConfig findByAppid(String appid){
|
return this.dao.findFirst("select * from " + getTableName() + " where app_id=? ",appid);
|
}
|
}
|