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


import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.dynamic.DynamicTagCmd;
import com.red.circle.other.inner.model.cmd.dynamic.PageDynamicTagQryCmd;
import com.red.circle.other.inner.model.dto.dynamic.DynamicTagDTO;
import java.util.Map;
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 DynamicTagClientApi {

  String API_PREFIX = "/dynamic/tag";

  @PostMapping("/addOrUpdate")
  ResultResponse<Void> addOrUpdate(@RequestBody DynamicTagCmd dynamicTag);

  @PostMapping("/pageData")
  ResultResponse<PageResult<DynamicTagDTO>> pageData(@RequestBody PageDynamicTagQryCmd query);

  @GetMapping("/getAllDynamicTag")
  ResultResponse<Map<String, DynamicTagDTO>> getAllDynamicTag();
}
