package org.dromara.zhishu.controller;

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.Account;
import org.dromara.zhishu.domain.ProfitSharingLog;
import org.dromara.zhishu.service.IAccountService;
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-03-05
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/zhishu/account")
public class AccountController {

    private final IAccountService accountService;

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

}
