package com.red.circle.other.app.inner.endpoint.material.props;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.app.inner.service.material.props.RoomThemeUserBackpackClientService;
import com.red.circle.other.inner.endpoint.material.props.api.RoomThemeUserBackpackClientApi;
import com.red.circle.other.inner.model.dto.material.RoomThemeUserBackpackDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户房间背包.
 *
 * @author pengliang on 2023/12/4
 */
@Validated
@RestController
@RequestMapping(value = RoomThemeUserBackpackClientApi.API_PREFIX, produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class RoomThemeUserBackpackClientEndpoint implements RoomThemeUserBackpackClientApi {

  private final RoomThemeUserBackpackClientService roomThemeUserBackpackClientService;

  @Override
  public ResultResponse<Void> save(RoomThemeUserBackpackDTO dto) {
    roomThemeUserBackpackClientService.save(dto);
    return ResultResponse.success();
  }

}
