package com.izouma.nineth.web;

import com.izouma.nineth.domain.UserAssetSummary;
import com.izouma.nineth.service.UserAssetSummaryService;
import com.izouma.nineth.dto.PageQuery;
import lombok.AllArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping({"/userAssetSummary", "/assetSuperimposition"})
@AllArgsConstructor
public class UserAssetSummaryController extends BaseController {
    private UserAssetSummaryService userAssetSummaryService;

    //@PreAuthorize("hasRole('ADMIN')")
    @PostMapping("/all")
    public Page<UserAssetSummary> all(@RequestBody PageQuery pageQuery) {
        return userAssetSummaryService.all(pageQuery);
    }

}

