Bot transparency API

This commit is contained in:
2025-08-23 17:55:42 +08:00
parent 541e2dd14c
commit d9620fd6a4
3 changed files with 50 additions and 1 deletions

View File

@@ -17,6 +17,12 @@ public class BotAccount : ModelBase
public DevProject Project { get; set; } = null!;
[NotMapped] public AccountReference? Account { get; set; }
/// <summary>
/// This developer field is to serve the transparent info for user to know which developer
/// published this robot. Not for relationships usage.
/// </summary>
[NotMapped] public Developer? Developer { get; set; }
public Shared.Proto.BotAccount ToProtoValue()
{