【7.3.2】【config】将判断是否是第一次启动的方法放入api

pull/43/MERGE
fengshuonan 2022-11-17 00:04:25 +08:00
parent d03643f4b5
commit cd17de64d0
2 changed files with 48 additions and 10 deletions

View File

@ -0,0 +1,46 @@
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* GunsAPACHE LICENSE 2.0使
*
* 1.LICENSE
* 2.Guns
* 3.
* 4. https://gitee.com/stylefeng/guns
* 5. https://gitee.com/stylefeng/guns
* 6.
*/
package cn.stylefeng.roses.kernel.config.api;
/**
* api
* <p>
* redis
*
* @author fengshuonan
* @date 2020/10/17 10:27
*/
public interface InitConfigApi {
/**
*
*
* @return true-false-
* @author fengshuonan
* @date 2021/7/8 17:20
*/
Boolean getInitConfigFlag();
}

View File

@ -24,6 +24,7 @@
*/ */
package cn.stylefeng.roses.kernel.config.modular.service; package cn.stylefeng.roses.kernel.config.modular.service;
import cn.stylefeng.roses.kernel.config.api.InitConfigApi;
import cn.stylefeng.roses.kernel.config.api.pojo.ConfigInitRequest; import cn.stylefeng.roses.kernel.config.api.pojo.ConfigInitRequest;
import cn.stylefeng.roses.kernel.config.modular.entity.SysConfig; import cn.stylefeng.roses.kernel.config.modular.entity.SysConfig;
import cn.stylefeng.roses.kernel.config.modular.pojo.InitConfigResponse; import cn.stylefeng.roses.kernel.config.modular.pojo.InitConfigResponse;
@ -39,7 +40,7 @@ import java.util.List;
* @author fengshuonan * @author fengshuonan
* @date 2020/4/14 11:14 * @date 2020/4/14 11:14
*/ */
public interface SysConfigService extends IService<SysConfig> { public interface SysConfigService extends IService<SysConfig>, InitConfigApi {
/** /**
* *
@ -106,15 +107,6 @@ public interface SysConfigService extends IService<SysConfig> {
*/ */
void initConfig(ConfigInitRequest configInitRequest); void initConfig(ConfigInitRequest configInitRequest);
/**
*
*
* @return true-false-
* @author fengshuonan
* @date 2021/7/8 17:20
*/
Boolean getInitConfigFlag();
/** /**
* *
* *