namespace Hua.Todo.Application.CloudSync.Auth;

/// <summary>
/// 云同步权限点常量。
/// </summary>
public static class CloudPermissions
{
    /// <summary>
    /// 读取任务数据。
    /// </summary>
    public const string TasksRead = "tasks:read";

    /// <summary>
    /// 写入任务数据。
    /// </summary>
    public const string TasksWrite = "tasks:write";

    /// <summary>
    /// 允许执行同步写入（用于区分“允许同步/禁止同步”）。
    /// </summary>
    public const string SyncWrite = "sync:write";

    /// <summary>
    /// 读取安全策略。
    /// </summary>
    public const string PolicyRead = "policy:read";

    /// <summary>
    /// 修改安全策略（高风险）。
    /// </summary>
    public const string PolicyWrite = "policy:write";

    /// <summary>
    /// 管理用户（创建/修改角色）。
    /// </summary>
    public const string UsersManage = "users:manage";
}

