software-functions-users

This commit is contained in:
Stoyan Zlatev
2023-05-30 16:18:36 +02:00
parent b5beb98a8c
commit 88d683dfbd
41 changed files with 1772 additions and 41 deletions
@@ -0,0 +1,41 @@
namespace LaaProductionWeb.Services.Interfaces
{
using LaaProductionWeb.Services.Models.Software;
using System;
using System.Collections.Generic;
public interface ISoftwareService : ITransient
{
void AddFunction(short appId, string name);
void DeleteFunction(int funcId);
IEnumerable<SoftwareFunction> GetAllSoftwareFunctions();
IEnumerable<SoftwareFunction> GetSoftwareFunctions(short appId);
SoftwareOverview GetSoftwareOverview(short appId);
IEnumerable<Software> GetSoftwareVersions(short appId);
Software GetSoftwareWithFunctions(short appId);
IEnumerable<SoftwareOverview> GetSoftwares();
IEnumerable<SoftwareUser> GetUsers(string username = null);
IEnumerable<SoftwareUser> GetUsersWithFunctions(int id = -1, string username = null);
int ResetPassword(short userId);
int ResetPassword(short userId, string password);
void UpdateFunction(int funcId, string name);
void UpdateUsersFunctions(Action<UserFunctions> mapper);
void UpdateUsersFunctions(Action<FunctionUsers> mapper);
void UpdatePasswordHashes();
}
}