/// <summary> /// 创建管理员 /// </summary> /// <param name="entity">实体</param> private async Task CreateAsync(Administrator entity) { entity.Init(); await AdministratorRepository.AddAsync(entity); }