当前位置:网站首页>Customer information management, business scenario 1

Customer information management, business scenario 1

2022-06-09 18:19:00 Jinan small program champion

    Preliminary entry development of business logic requirements . 

using System;
using System.Linq;
using System.Threading.Tasks;
using Infrastructure;
using Microsoft.EntityFrameworkCore;
using OpenAuth.App.Interface;
using OpenAuth.App.Request;
using OpenAuth.App.Response;
using OpenAuth.Repository;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;


namespace OpenAuth.App
{
    public class baseCustomerAPP : BaseStringApp<baseCustomer,OpenAuthDBContext>
    {

        /// <summary>
        ///  Load list 
        /// </summary>
        ///  asynchronous  
        public async Task<TableData> Load(QuerybaseCustomerListReq request)
        {
            // 0.1 Login settings 
            var loginContext = _auth.GetCurrentUser();

            if (loginContext == null)
            {
            throw new CommonException(" Login expired ", Define.INVALID_TOKEN);
            }
            //0.2  Column fields  
            var columnFields = loginContext.GetTable
原网站

版权声明
本文为[Jinan small program champion]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206091811232131.html