public BaseResponse InsertOrUpdateAdminUser(AdminUserEntity entity, string type)
        {
            var res = false;

            if (type == "insert")
            {
                var userEntity = adminUser.QueryAdminUserOne(new AdminUserRequest {
                    UserName = entity.UserName
                });
                if (userEntity != null)
                {
                    return(new BaseResponse {
                        IsSuccess = false, Msg = $"{entity.UserName}已经添加,请使用原账号"
                    });
                }
                res = adminUser.InsertAdminUser(entity);
            }
            else
            {
                res = adminUser.UpdateAdminUser(entity);
            }
            NLogHelper.Default.Info($"InsertAdminUser=>{type}用户结果:{res}");
            return(new BaseResponse
            {
                IsSuccess = res,
                Msg = res ? "成功" : "操作失败"
            });
        }