コード例 #1
0
        public async Task <IActionResult> GetSqlDocList([FromBody] Req <AdminSqlDocSearchDto> request)
        {
            request.Data.AdminId = request.OperatorId;
            if (request.Data.SqlDocType == 0)
            {
                var page = await _sqlOnlineApplication.GetSelfSqlDocList(request.Data);

                return(LayuiSuccess(page, request.PasswordString));
            }
            else if (request.Data.SqlDocType == 1)
            {
                var page = await _sqlOnlineApplication.GetSelfSqlDocTempList(request.Data);

                return(LayuiSuccess(page, request.PasswordString));
            }
            else if (request.Data.SqlDocType == 2)
            {
                var page = await _sqlOnlineApplication.GetShareSqlDocList(request.Data);

                return(LayuiSuccess(page, request.PasswordString));
            }
            return(Error());
        }