-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Tynab/develop
semi
- Loading branch information
Showing
42 changed files
with
237 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
src/YANLib.Application.Contracts/Permissions/YANLibPermissionDefinitionProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
using Volo.Abp.Authorization.Permissions; | ||
using Volo.Abp.Localization; | ||
using YANLib.Localization; | ||
using static Volo.Abp.Localization.LocalizableString; | ||
|
||
namespace YANLib.Permissions; | ||
|
||
public class YANLibPermissionDefinitionProvider : PermissionDefinitionProvider | ||
{ | ||
public override void Define(IPermissionDefinitionContext context) => context.AddGroup(YANLibPermissions.GroupName); | ||
public override void Define(IPermissionDefinitionContext context) | ||
{ | ||
var myGroup = context.AddGroup(YANLibPermissions.GroupName); | ||
//Define your own permissions here. Example: | ||
//myGroup.AddPermission(YANLibPermissions.MyPermission1, L("Permission:MyPermission1")); | ||
} | ||
|
||
private static LocalizableString L(string name) => Create<YANLibResource>(name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
src/YANLib.Application.Contracts/Requests/CertificateRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace YANLib.Requests; | ||
namespace YANLib.Requests; | ||
|
||
public sealed class CertificateRequest | ||
{ | ||
[Required] | ||
public string Id { get; set; } | ||
public required string Id { get; set; } | ||
|
||
[Required] | ||
public string Name { get; set; } | ||
public required string Name { get; set; } | ||
|
||
public double? GPA { get; set; } | ||
|
||
[Required] | ||
public string DeveloperId { get; set; } | ||
public required string DeveloperId { get; set; } | ||
} |
13 changes: 4 additions & 9 deletions
13
src/YANLib.Application.Contracts/Requests/Developer/DeveloperCreateRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.