package org.dromara.zhishu.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaIgnore;
import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.zhishu.domain.ProfitSharingLog;
import org.dromara.zhishu.domain.bo.PriceTemplateBo;
import org.dromara.zhishu.domain.vo.PriceTemplateVo;
import org.dromara.zhishu.service.IProfitSharingLogService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 分润日志表
 *
 * @author yxy
 * @date 2026-02-26
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/zhishu/profitSharingLog")
public class ProfitSharingLogController {

    private final IProfitSharingLogService profitSharingLogService;

    /**
     * 分页查询分润日志表
     */
//    @SaCheckPermission("zhishu:profitSharingLog:list")
    @GetMapping("/list")
    @SaIgnore
    public TableDataInfo<ProfitSharingLog> list(ProfitSharingLog bo, PageQuery pageQuery) {
        return profitSharingLogService.queryPageList(bo, pageQuery);
    }
}
