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

import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.sys.SysWeekStarGroupAddParamCmd;
import com.red.circle.other.inner.model.cmd.sys.SysWeekStarGroupQryCmd;
import com.red.circle.other.inner.model.dto.sys.SysWeekStarGroupDTO;
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/3
 */
public interface SysWeekStarGroupClientApi {

  String API_PREFIX = "/sys/week-star-group";

  @PostMapping("/getPage")
  ResultResponse<PageResult<SysWeekStarGroupDTO>> getPage(
      @RequestBody SysWeekStarGroupQryCmd query);

  @PostMapping("/addGroup")
  ResultResponse<Void> addGroup(@RequestBody SysWeekStarGroupAddParamCmd param);

  @PostMapping("/deleteAndAssociateGroup")
  ResultResponse<Void> deleteAndAssociateGroup(@RequestParam("id") Long id);
}
