mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-10 12:29:31 +02:00
добавил патенты, верификацию, сделал паспорта, ип ооо
This commit is contained in:
49
Justice/Modals/BiznessModals.cs
Normal file
49
Justice/Modals/BiznessModals.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using Discord;
|
||||
using Discord.Interactions;
|
||||
|
||||
namespace DiscordApp.Justice.Modals
|
||||
{
|
||||
public class INewIndividualEntrepreneur : IModal
|
||||
{
|
||||
public string Title => "Регистрация ИП";
|
||||
[InputLabel("ID паспорта")]
|
||||
[ModalTextInput("nickname", TextInputStyle.Short, placeholder: "96534", maxLength: 10)]
|
||||
public string passportId { get; set; }
|
||||
|
||||
[InputLabel("Название")]
|
||||
[ModalTextInput("Name", TextInputStyle.Short, placeholder: "ИП Оганесян", maxLength: 100)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[InputLabel("Тип деятельности")]
|
||||
[ModalTextInput("Type", TextInputStyle.Short, placeholder: "Продажа", maxLength: 200)]
|
||||
public string BiznessType { get; set; }
|
||||
|
||||
[InputLabel("Номер карты")]
|
||||
[ModalTextInput("cardNumber", TextInputStyle.Short, placeholder: "70835", maxLength: 100)]
|
||||
public int CardNumber { get; set; }
|
||||
|
||||
}
|
||||
public class INewBizness : IModal
|
||||
{
|
||||
public string Title => "Регистрация ИП";
|
||||
[InputLabel("ID паспорта")]
|
||||
[ModalTextInput("nickname", TextInputStyle.Short, placeholder: "96534", maxLength: 10)]
|
||||
public string passportId { get; set; }
|
||||
|
||||
[InputLabel("Название")]
|
||||
[ModalTextInput("Name", TextInputStyle.Short, placeholder: "ИП Оганесян", maxLength: 100)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[InputLabel("Тип деятельности")]
|
||||
[ModalTextInput("Type", TextInputStyle.Short, placeholder: "Продажа", maxLength: 200)]
|
||||
public string BiznessType { get; set; }
|
||||
|
||||
[InputLabel("Участники(через запятую)")]
|
||||
[ModalTextInput("Employee", TextInputStyle.Short, placeholder: "96534, 12742", maxLength: 200)]
|
||||
public string BiznessEmployee { get; set; }
|
||||
|
||||
[InputLabel("Номер карты")]
|
||||
[ModalTextInput("cardNumber", TextInputStyle.Short, placeholder: "70835", maxLength: 100)]
|
||||
public int CardNumber { get; set; }
|
||||
}
|
||||
}
|
||||
46
Justice/Modals/PassportModals.cs
Normal file
46
Justice/Modals/PassportModals.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using Discord.Interactions;
|
||||
using Discord;
|
||||
|
||||
namespace DiscordApp.Justice.Modals
|
||||
{
|
||||
public class INewPassportModal : IModal
|
||||
{
|
||||
public string Title => "Создание паспорта";
|
||||
|
||||
[InputLabel("Ник игрока")]
|
||||
[ModalTextInput("nickname", TextInputStyle.Short, placeholder: "YaFlay", maxLength: 90)]
|
||||
public string NickName { get; set; }
|
||||
|
||||
[InputLabel("Благотворитель")]
|
||||
[ModalTextInput("Supporter", TextInputStyle.Short, placeholder: "1", maxLength: 5)]
|
||||
public int Supporter { get; set; }
|
||||
|
||||
[InputLabel("РП Имя")]
|
||||
[ModalTextInput("rolePlayName", TextInputStyle.Short, placeholder: "Олег Бебров", maxLength: 200)]
|
||||
public string RPName { get; set; }
|
||||
|
||||
[InputLabel("Пол")]
|
||||
[ModalTextInput("gender", TextInputStyle.Short, maxLength: 200)]
|
||||
public string Gender { get; set; }
|
||||
[InputLabel("Дата рождения")]
|
||||
[ModalTextInput("BirthDay", TextInputStyle.Short, placeholder: "16.02.2023", maxLength: 100)]
|
||||
public string Birthday { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class IReWorkPassportModal : IModal
|
||||
{
|
||||
public string Title => "Создание паспорта";
|
||||
|
||||
[InputLabel("ID паспорта")]
|
||||
[ModalTextInput("id", TextInputStyle.Short, placeholder: "82-777", maxLength: 7)]
|
||||
public double Id { get; set; }
|
||||
|
||||
[InputLabel("Новые данные(0/1)")]
|
||||
[ModalTextInput("isNewPassportData", TextInputStyle.Short, placeholder: "1 - да, 0 - нет", maxLength: 1, initValue: "0")]
|
||||
public int IsNewPassport { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
54
Justice/Modals/PatentModals.cs
Normal file
54
Justice/Modals/PatentModals.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using Discord;
|
||||
using Discord.Interactions;
|
||||
|
||||
namespace DiscordApp.Justice.Modals
|
||||
{
|
||||
public class INewArtModal : IModal
|
||||
{
|
||||
public string Title => "Новый патент на арт";
|
||||
|
||||
[InputLabel("ID паспорта")]
|
||||
[ModalTextInput("passportId", TextInputStyle.Short, placeholder: "97664", maxLength: 10)]
|
||||
public int PassportId { get; set; }
|
||||
|
||||
[InputLabel("Название арта")]
|
||||
[ModalTextInput("artName", TextInputStyle.Short, placeholder: "Пикачу", maxLength: 100)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[InputLabel("Номера карт арта(Через запятую)")]
|
||||
[ModalTextInput("mapNumbers", TextInputStyle.Short, placeholder: "14322, 14323")]
|
||||
public string MapNumbers { get; set; }
|
||||
|
||||
[InputLabel("Размер арта")]
|
||||
[ModalTextInput("artSize", TextInputStyle.Short, placeholder: "3х1")]
|
||||
public string Size { get; set; }
|
||||
[InputLabel("Разрешено ли перепродавать(0/1)")]
|
||||
[ModalTextInput("artResell", TextInputStyle.Short, placeholder: "0 - нет, 1 - да")]
|
||||
public int IsAllowedToResell { get; set; }
|
||||
}
|
||||
|
||||
public class INewBookModal : IModal
|
||||
{
|
||||
public string Title => "Новый патент на книгу";
|
||||
|
||||
[InputLabel("ID паспорта")]
|
||||
[ModalTextInput("passportId", TextInputStyle.Short, placeholder: "97664", maxLength: 10)]
|
||||
public int PassportId { get; set; }
|
||||
|
||||
[InputLabel("Название книги")]
|
||||
[ModalTextInput("bookName", TextInputStyle.Short, placeholder: "Пикачу", maxLength: 100)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[InputLabel("Аннотация")]
|
||||
[ModalTextInput("bookAnnotation", TextInputStyle.Short, placeholder: "14322, 14323")]
|
||||
public string Annotation { get; set; }
|
||||
|
||||
[InputLabel("Жанр")]
|
||||
[ModalTextInput("bookJanre", TextInputStyle.Short, placeholder: "3х1")]
|
||||
public string Janre { get; set; }
|
||||
|
||||
[InputLabel("Разрешено ли перепродавать(0/1)")]
|
||||
[ModalTextInput("bookResell", TextInputStyle.Short, placeholder: "0 - нет, 1 - да")]
|
||||
public int IsAllowedToResell { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user