package com.zcloud.domain.web;


import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.jjb.saas.framework.auth.model.SSOUser;
import com.jjb.saas.framework.auth.utils.AuthContext;
import com.zcloud.domain.api.DomainDepartmentUserServiceI;
import com.zcloud.domain.dto.DomainDepartmentUserAddCmd;
import com.zcloud.domain.dto.DomainDepartmentUserPageQry;
import com.zcloud.domain.dto.DomainDepartmentUserUpdateCmd;
import com.zcloud.domain.dto.clientobject.DomainDepartmentUserCO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.ArrayList;

/**
 * web-adapter
 *
 * @Author zhaokai
 * @Date 2026-01-27 11:29:09
 */
@Api(tags = "领域部门审核人员")
@RequestMapping("/${application.gateway}/domainDepartmentUser")
@RestController
@AllArgsConstructor
public class DomainDepartmentUserController {
    private final DomainDepartmentUserServiceI domainDepartmentUserService;



    @ApiOperation("领域部门下审核人员分页")
    @PostMapping("/list")
    public PageResponse<DomainDepartmentUserCO> page(@Validated @RequestBody DomainDepartmentUserPageQry qry) {
        return domainDepartmentUserService.listPage(qry);
    }

    @ApiOperation("领域部门下审核人员所有数据")
    @PostMapping("/listAll")
    public MultiResponse<DomainDepartmentUserCO> listAll(@Validated @RequestBody DomainDepartmentUserPageQry qry) {
        return MultiResponse.of(domainDepartmentUserService.listAll(qry));
    }



}

