package com.red.circle.other.inner.endpoint.dynamic.api;


import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.dynamic.DynamicPopularConfigCmd;
import com.red.circle.other.inner.model.dto.dynamic.DynamicPopularConfigDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 动态-缓存服务.
 *
 * @author lisizhe on 2023/10/5
 */
public interface DynamicCacheClientApi {

  String API_PREFIX = "/dynamic/cache";

  @GetMapping("/getDynamicPopularConfig")
  ResultResponse<DynamicPopularConfigDTO> getDynamicPopularConfig();

  @PostMapping("/updateDynamicPopularConfig")
  ResultResponse<Void> updateDynamicPopularConfig(@RequestBody DynamicPopularConfigCmd param);
}
