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

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.dto.sys.SysMessageCopywritingContentDTO;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zongpubin on 2023/11/8
 */
public interface SysMessageCopywritingContentClientApi {

  String API_PREFIX = "/sys/message-copywriting-content";

  @GetMapping("/listByTextTypeId")
  ResultResponse<List<SysMessageCopywritingContentDTO>> listByTextTypeId(
      @RequestParam("textTypeId") Long textTypeId);

  @PostMapping("/synchronizeTemplateMessage")
  ResultResponse<Void> synchronizeTemplateMessage(
      @RequestBody List<SysMessageCopywritingContentDTO> list);

  @GetMapping("/listByLanguage")
  ResultResponse<List<SysMessageCopywritingContentDTO>> listByLanguage(
      @RequestParam("textTypeId") String Language);

  @PostMapping("/save")
  ResultResponse<Void> save(
      @RequestBody SysMessageCopywritingContentDTO sysMessageCopywritingContent);
}
