# 公共配置项

原始文档链接：[公共配置项](https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/repository/b90d212e-0cab-40a6-9845-d9476f717caf/doc/958003072565682176)
目录分组：通用rpc接口以及通用方法

```java
public interface RemoteConfigurationExtService {
	@ApiOperation("返回值为查询CONFIG_EXT的对应数据")
    ConfigExt getMainConfigExt(String configKey, String tenantKey);
}
```

```java
public interface RemoteConfigurationService {
    SimpleConfiguration findUserConfig(Long userId, String configKey, String tenantKey);

    int updateUserConfig(Long userId, String configKey, String value, String tenantKey);

    int createUserConfig(Long userId, String configKey, String value, String tenantKey);

    SimpleConfiguration getGlobalConfig(String configKey);

    SimpleConfiguration create(SimpleConfiguration configuration);

    SimpleConfiguration update(SimpleConfiguration configuration);

    void updateConfigByKey(String configValue, String configKey);

    SimpleConfiguration getSimpleConfigByKey(String configKey, String tenatKey);

    void updateConfigByKey(String configValue, String configKey, String tenatKey);

    void delete(Long id);

    int getUserIntroCount(Long userId, String configKey);

    List<SimpleConfiguration> findSimpleConfiguration();

    List<SimpleConfiguration> findSimpleConfiguration(String TenantKey);

    List<SimpleConfiguration> querySimpleConfigByKeys(List<String> keys, String tenantKey);

    List<SimpleConfiguration> queryAllSimpleConfigByKeys(List<String> keys, List<String> tenantKeys);

    void updateSimpleConfigs(List<SimpleConfiguration> configs);

    void saveSimpleConfigs(List<SimpleConfiguration> configs);

    List<SimpleConfiguration> saveGuideInfo(SimpleEmployee admin);

    /** @deprecated */
    @Deprecated
    SimpleConfiguration getConfigByKey(String string, String tenantKey);

    void save(SimpleConfiguration config);

    Map<?, ?> findSimpleConfigsByIds(List<Long> userIds, String agendaPushSetKey, String tenantKey);

    Map<String, SimpleConfiguration> getAllSimpleConfiguration(Long id, String tenantKey);

    void deleteConfigurations(SimpleEmployee simpleEmployee, List<String> configKeys);

    Map<String, String> getWaterMarkConfigs(String tenantKey);

    Map<String, String> getMobileWaterMarkConfig(Map mobileConfigMap);
}
```
