mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 08:32:50 -05:00
Move request/response models (#1754)
This commit is contained in:
18
src/Api/Models/Public/PolicyBaseModel.cs
Normal file
18
src/Api/Models/Public/PolicyBaseModel.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Bit.Api.Models.Public
|
||||
{
|
||||
public abstract class PolicyBaseModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines if this policy is enabled and enforced.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public bool? Enabled { get; set; }
|
||||
/// <summary>
|
||||
/// Data for the policy.
|
||||
/// </summary>
|
||||
public Dictionary<string, object> Data { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user