first
This commit is contained in:
3
openapi/.gitignore
vendored
Normal file
3
openapi/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/target/
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
23
openapi/.openapi-generator-ignore
Normal file
23
openapi/.openapi-generator-ignore
Normal file
@ -0,0 +1,23 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
86
openapi/.openapi-generator/FILES
Normal file
86
openapi/.openapi-generator/FILES
Normal file
@ -0,0 +1,86 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
.travis.yml
|
||||
Cargo.toml
|
||||
README.md
|
||||
docs/Card.md
|
||||
docs/CardApi.md
|
||||
docs/CardCreate.md
|
||||
docs/CardList.md
|
||||
docs/CardOwnerRead.md
|
||||
docs/CardRead.md
|
||||
docs/CardUpdate.md
|
||||
docs/CreateCardRequest.md
|
||||
docs/CreateGroupRequest.md
|
||||
docs/CreateUeRequest.md
|
||||
docs/CreateUserRequest.md
|
||||
docs/Group.md
|
||||
docs/GroupApi.md
|
||||
docs/GroupCreate.md
|
||||
docs/GroupList.md
|
||||
docs/GroupRead.md
|
||||
docs/GroupUpdate.md
|
||||
docs/GroupUsersList.md
|
||||
docs/ListCard400Response.md
|
||||
docs/Ue.md
|
||||
docs/UeApi.md
|
||||
docs/UeCreate.md
|
||||
docs/UeList.md
|
||||
docs/UeOwnerRead.md
|
||||
docs/UeRead.md
|
||||
docs/UeUpdate.md
|
||||
docs/UpdateCardRequest.md
|
||||
docs/UpdateGroupRequest.md
|
||||
docs/UpdateUeRequest.md
|
||||
docs/UpdateUserRequest.md
|
||||
docs/User.md
|
||||
docs/UserApi.md
|
||||
docs/UserCardList.md
|
||||
docs/UserCreate.md
|
||||
docs/UserList.md
|
||||
docs/UserRead.md
|
||||
docs/UserUeList.md
|
||||
docs/UserUpdate.md
|
||||
git_push.sh
|
||||
src/apis/card_api.rs
|
||||
src/apis/configuration.rs
|
||||
src/apis/group_api.rs
|
||||
src/apis/mod.rs
|
||||
src/apis/ue_api.rs
|
||||
src/apis/user_api.rs
|
||||
src/lib.rs
|
||||
src/models/card.rs
|
||||
src/models/card_create.rs
|
||||
src/models/card_list.rs
|
||||
src/models/card_owner_read.rs
|
||||
src/models/card_read.rs
|
||||
src/models/card_update.rs
|
||||
src/models/create_card_request.rs
|
||||
src/models/create_group_request.rs
|
||||
src/models/create_ue_request.rs
|
||||
src/models/create_user_request.rs
|
||||
src/models/group.rs
|
||||
src/models/group_create.rs
|
||||
src/models/group_list.rs
|
||||
src/models/group_read.rs
|
||||
src/models/group_update.rs
|
||||
src/models/group_users_list.rs
|
||||
src/models/list_card_400_response.rs
|
||||
src/models/mod.rs
|
||||
src/models/ue.rs
|
||||
src/models/ue_create.rs
|
||||
src/models/ue_list.rs
|
||||
src/models/ue_owner_read.rs
|
||||
src/models/ue_read.rs
|
||||
src/models/ue_update.rs
|
||||
src/models/update_card_request.rs
|
||||
src/models/update_group_request.rs
|
||||
src/models/update_ue_request.rs
|
||||
src/models/update_user_request.rs
|
||||
src/models/user.rs
|
||||
src/models/user_card_list.rs
|
||||
src/models/user_create.rs
|
||||
src/models/user_list.rs
|
||||
src/models/user_read.rs
|
||||
src/models/user_ue_list.rs
|
||||
src/models/user_update.rs
|
1
openapi/.openapi-generator/VERSION
Normal file
1
openapi/.openapi-generator/VERSION
Normal file
@ -0,0 +1 @@
|
||||
7.4.0
|
1
openapi/.travis.yml
Normal file
1
openapi/.travis.yml
Normal file
@ -0,0 +1 @@
|
||||
language: rust
|
19
openapi/Cargo.toml
Normal file
19
openapi/Cargo.toml
Normal file
@ -0,0 +1,19 @@
|
||||
[package]
|
||||
name = "openapi"
|
||||
version = "0.1.0"
|
||||
authors = ["OpenAPI Generator team and contributors"]
|
||||
description = "This is an auto generated API description made out of an Ent schema definition"
|
||||
# Override this license by providing a License Object in the OpenAPI.
|
||||
license = "Unlicense"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = "^1.0"
|
||||
serde_derive = "^1.0"
|
||||
serde_with = "^2.0"
|
||||
serde_json = "^1.0"
|
||||
url = "^2.2"
|
||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
||||
[dependencies.reqwest]
|
||||
version = "^0.11"
|
||||
features = ["json", "multipart"]
|
105
openapi/README.md
Normal file
105
openapi/README.md
Normal file
@ -0,0 +1,105 @@
|
||||
# Rust API client for openapi
|
||||
|
||||
This is an auto generated API description made out of an Ent schema definition
|
||||
|
||||
|
||||
## Overview
|
||||
|
||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
|
||||
|
||||
- API version: 0.1.0
|
||||
- Package version: 0.1.0
|
||||
- Generator version: 7.4.0
|
||||
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
|
||||
|
||||
## Installation
|
||||
|
||||
Put the package under your project folder in a directory named `openapi` and add the following to `Cargo.toml` under `[dependencies]`:
|
||||
|
||||
```
|
||||
openapi = { path = "./openapi" }
|
||||
```
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*CardApi* | [**create_card**](docs/CardApi.md#create_card) | **POST** /cards | Create a new Card
|
||||
*CardApi* | [**delete_card**](docs/CardApi.md#delete_card) | **DELETE** /cards/{id} | Deletes a Card by ID
|
||||
*CardApi* | [**draw_done**](docs/CardApi.md#draw_done) | **PUT** /cards/{id}/d | Draws a card item as done.
|
||||
*CardApi* | [**draw_start**](docs/CardApi.md#draw_start) | **PATCH** /users/{id}/card/start | Draws a card item as done.
|
||||
*CardApi* | [**list_card**](docs/CardApi.md#list_card) | **GET** /cards | List Cards
|
||||
*CardApi* | [**read_card**](docs/CardApi.md#read_card) | **GET** /cards/{id} | Find a Card by ID
|
||||
*CardApi* | [**read_card_owner**](docs/CardApi.md#read_card_owner) | **GET** /cards/{id}/owner | Find the attached User
|
||||
*CardApi* | [**update_card**](docs/CardApi.md#update_card) | **PATCH** /cards/{id} | Updates a Card
|
||||
*GroupApi* | [**create_group**](docs/GroupApi.md#create_group) | **POST** /groups | Create a new Group
|
||||
*GroupApi* | [**delete_group**](docs/GroupApi.md#delete_group) | **DELETE** /groups/{id} | Deletes a Group by ID
|
||||
*GroupApi* | [**list_group**](docs/GroupApi.md#list_group) | **GET** /groups | List Groups
|
||||
*GroupApi* | [**list_group_users**](docs/GroupApi.md#list_group_users) | **GET** /groups/{id}/users | List attached Users
|
||||
*GroupApi* | [**read_group**](docs/GroupApi.md#read_group) | **GET** /groups/{id} | Find a Group by ID
|
||||
*GroupApi* | [**update_group**](docs/GroupApi.md#update_group) | **PATCH** /groups/{id} | Updates a Group
|
||||
*UeApi* | [**create_ue**](docs/UeApi.md#create_ue) | **POST** /ues | Create a new Ue
|
||||
*UeApi* | [**delete_ue**](docs/UeApi.md#delete_ue) | **DELETE** /ues/{id} | Deletes a Ue by ID
|
||||
*UeApi* | [**list_ue**](docs/UeApi.md#list_ue) | **GET** /ues | List Ues
|
||||
*UeApi* | [**read_ue**](docs/UeApi.md#read_ue) | **GET** /ues/{id} | Find a Ue by ID
|
||||
*UeApi* | [**read_ue_owner**](docs/UeApi.md#read_ue_owner) | **GET** /ues/{id}/owner | Find the attached User
|
||||
*UeApi* | [**update_ue**](docs/UeApi.md#update_ue) | **PATCH** /ues/{id} | Updates a Ue
|
||||
*UserApi* | [**create_user**](docs/UserApi.md#create_user) | **POST** /users | Create a new User
|
||||
*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /users/{id} | Deletes a User by ID
|
||||
*UserApi* | [**list_user**](docs/UserApi.md#list_user) | **GET** /users | List Users
|
||||
*UserApi* | [**list_user_card**](docs/UserApi.md#list_user_card) | **GET** /users/{id}/card | List attached Cards
|
||||
*UserApi* | [**list_user_ue**](docs/UserApi.md#list_user_ue) | **GET** /users/{id}/ue | List attached Ues
|
||||
*UserApi* | [**read_user**](docs/UserApi.md#read_user) | **GET** /users/{id} | Find a User by ID
|
||||
*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PATCH** /users/{id} | Updates a User
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [Card](docs/Card.md)
|
||||
- [CardCreate](docs/CardCreate.md)
|
||||
- [CardList](docs/CardList.md)
|
||||
- [CardOwnerRead](docs/CardOwnerRead.md)
|
||||
- [CardRead](docs/CardRead.md)
|
||||
- [CardUpdate](docs/CardUpdate.md)
|
||||
- [CreateCardRequest](docs/CreateCardRequest.md)
|
||||
- [CreateGroupRequest](docs/CreateGroupRequest.md)
|
||||
- [CreateUeRequest](docs/CreateUeRequest.md)
|
||||
- [CreateUserRequest](docs/CreateUserRequest.md)
|
||||
- [Group](docs/Group.md)
|
||||
- [GroupCreate](docs/GroupCreate.md)
|
||||
- [GroupList](docs/GroupList.md)
|
||||
- [GroupRead](docs/GroupRead.md)
|
||||
- [GroupUpdate](docs/GroupUpdate.md)
|
||||
- [GroupUsersList](docs/GroupUsersList.md)
|
||||
- [ListCard400Response](docs/ListCard400Response.md)
|
||||
- [Ue](docs/Ue.md)
|
||||
- [UeCreate](docs/UeCreate.md)
|
||||
- [UeList](docs/UeList.md)
|
||||
- [UeOwnerRead](docs/UeOwnerRead.md)
|
||||
- [UeRead](docs/UeRead.md)
|
||||
- [UeUpdate](docs/UeUpdate.md)
|
||||
- [UpdateCardRequest](docs/UpdateCardRequest.md)
|
||||
- [UpdateGroupRequest](docs/UpdateGroupRequest.md)
|
||||
- [UpdateUeRequest](docs/UpdateUeRequest.md)
|
||||
- [UpdateUserRequest](docs/UpdateUserRequest.md)
|
||||
- [User](docs/User.md)
|
||||
- [UserCardList](docs/UserCardList.md)
|
||||
- [UserCreate](docs/UserCreate.md)
|
||||
- [UserList](docs/UserList.md)
|
||||
- [UserRead](docs/UserRead.md)
|
||||
- [UserUeList](docs/UserUeList.md)
|
||||
- [UserUpdate](docs/UserUpdate.md)
|
||||
|
||||
|
||||
To get access to the crate's generated documentation, use:
|
||||
|
||||
```
|
||||
cargo doc --open
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
|
||||
|
22
openapi/docs/Card.md
Normal file
22
openapi/docs/Card.md
Normal file
@ -0,0 +1,22 @@
|
||||
# Card
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**password** | **String** | |
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**owner** | [**models::User**](User.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
254
openapi/docs/CardApi.md
Normal file
254
openapi/docs/CardApi.md
Normal file
@ -0,0 +1,254 @@
|
||||
# \CardApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**create_card**](CardApi.md#create_card) | **POST** /cards | Create a new Card
|
||||
[**delete_card**](CardApi.md#delete_card) | **DELETE** /cards/{id} | Deletes a Card by ID
|
||||
[**draw_done**](CardApi.md#draw_done) | **PUT** /cards/{id}/d | Draws a card item as done.
|
||||
[**draw_start**](CardApi.md#draw_start) | **PATCH** /users/{id}/card/start | Draws a card item as done.
|
||||
[**list_card**](CardApi.md#list_card) | **GET** /cards | List Cards
|
||||
[**read_card**](CardApi.md#read_card) | **GET** /cards/{id} | Find a Card by ID
|
||||
[**read_card_owner**](CardApi.md#read_card_owner) | **GET** /cards/{id}/owner | Find the attached User
|
||||
[**update_card**](CardApi.md#update_card) | **PATCH** /cards/{id} | Updates a Card
|
||||
|
||||
|
||||
|
||||
## create_card
|
||||
|
||||
> models::CardCreate create_card(create_card_request)
|
||||
Create a new Card
|
||||
|
||||
Creates a new Card and persists it to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**create_card_request** | [**CreateCardRequest**](CreateCardRequest.md) | Card to create | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::CardCreate**](CardCreate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## delete_card
|
||||
|
||||
> delete_card(id)
|
||||
Deletes a Card by ID
|
||||
|
||||
Deletes the Card with the requested ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Card | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## draw_done
|
||||
|
||||
> draw_done(id)
|
||||
Draws a card item as done.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## draw_start
|
||||
|
||||
> draw_start(id)
|
||||
Draws a card item as done.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## list_card
|
||||
|
||||
> Vec<models::CardList> list_card(page, items_per_page)
|
||||
List Cards
|
||||
|
||||
List Cards.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | what page to render | |
|
||||
**items_per_page** | Option<**i32**> | item count to render per page | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::CardList>**](CardList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## read_card
|
||||
|
||||
> models::CardRead read_card(id)
|
||||
Find a Card by ID
|
||||
|
||||
Finds the Card with the requested ID and returns it.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Card | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::CardRead**](CardRead.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## read_card_owner
|
||||
|
||||
> models::CardOwnerRead read_card_owner(id)
|
||||
Find the attached User
|
||||
|
||||
Find the attached User of the Card with the given ID
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Card | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::CardOwnerRead**](Card_OwnerRead.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## update_card
|
||||
|
||||
> models::CardUpdate update_card(id, update_card_request)
|
||||
Updates a Card
|
||||
|
||||
Updates a Card and persists changes to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Card | [required] |
|
||||
**update_card_request** | [**UpdateCardRequest**](UpdateCardRequest.md) | Card properties to update | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::CardUpdate**](CardUpdate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
19
openapi/docs/CardCreate.md
Normal file
19
openapi/docs/CardCreate.md
Normal file
@ -0,0 +1,19 @@
|
||||
# CardCreate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
openapi/docs/CardList.md
Normal file
19
openapi/docs/CardList.md
Normal file
@ -0,0 +1,19 @@
|
||||
# CardList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/CardOwnerRead.md
Normal file
59
openapi/docs/CardOwnerRead.md
Normal file
@ -0,0 +1,59 @@
|
||||
# CardOwnerRead
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
openapi/docs/CardRead.md
Normal file
19
openapi/docs/CardRead.md
Normal file
@ -0,0 +1,19 @@
|
||||
# CardRead
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
openapi/docs/CardUpdate.md
Normal file
19
openapi/docs/CardUpdate.md
Normal file
@ -0,0 +1,19 @@
|
||||
# CardUpdate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
21
openapi/docs/CreateCardRequest.md
Normal file
21
openapi/docs/CreateCardRequest.md
Normal file
@ -0,0 +1,21 @@
|
||||
# CreateCardRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**password** | **String** | |
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**owner** | **i32** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
openapi/docs/CreateGroupRequest.md
Normal file
13
openapi/docs/CreateGroupRequest.md
Normal file
@ -0,0 +1,13 @@
|
||||
# CreateGroupRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **String** | |
|
||||
**password** | **String** | |
|
||||
**users** | Option<**Vec<i32>**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
30
openapi/docs/CreateUeRequest.md
Normal file
30
openapi/docs/CreateUeRequest.md
Normal file
@ -0,0 +1,30 @@
|
||||
# CreateUeRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**password** | **String** | |
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**owner** | **i32** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
62
openapi/docs/CreateUserRequest.md
Normal file
62
openapi/docs/CreateUserRequest.md
Normal file
@ -0,0 +1,62 @@
|
||||
# CreateUserRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**password** | **String** | |
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
**card** | Option<**Vec<i32>**> | | [optional]
|
||||
**ue** | Option<**Vec<i32>**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
14
openapi/docs/Group.md
Normal file
14
openapi/docs/Group.md
Normal file
@ -0,0 +1,14 @@
|
||||
# Group
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**name** | **String** | |
|
||||
**password** | **String** | |
|
||||
**users** | Option<[**Vec<models::User>**](User.md)> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
198
openapi/docs/GroupApi.md
Normal file
198
openapi/docs/GroupApi.md
Normal file
@ -0,0 +1,198 @@
|
||||
# \GroupApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**create_group**](GroupApi.md#create_group) | **POST** /groups | Create a new Group
|
||||
[**delete_group**](GroupApi.md#delete_group) | **DELETE** /groups/{id} | Deletes a Group by ID
|
||||
[**list_group**](GroupApi.md#list_group) | **GET** /groups | List Groups
|
||||
[**list_group_users**](GroupApi.md#list_group_users) | **GET** /groups/{id}/users | List attached Users
|
||||
[**read_group**](GroupApi.md#read_group) | **GET** /groups/{id} | Find a Group by ID
|
||||
[**update_group**](GroupApi.md#update_group) | **PATCH** /groups/{id} | Updates a Group
|
||||
|
||||
|
||||
|
||||
## create_group
|
||||
|
||||
> models::GroupCreate create_group(create_group_request)
|
||||
Create a new Group
|
||||
|
||||
Creates a new Group and persists it to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**create_group_request** | [**CreateGroupRequest**](CreateGroupRequest.md) | Group to create | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::GroupCreate**](GroupCreate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## delete_group
|
||||
|
||||
> delete_group(id)
|
||||
Deletes a Group by ID
|
||||
|
||||
Deletes the Group with the requested ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Group | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## list_group
|
||||
|
||||
> Vec<models::GroupList> list_group(page, items_per_page)
|
||||
List Groups
|
||||
|
||||
List Groups.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | what page to render | |
|
||||
**items_per_page** | Option<**i32**> | item count to render per page | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::GroupList>**](GroupList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## list_group_users
|
||||
|
||||
> Vec<models::GroupUsersList> list_group_users(id, page, items_per_page)
|
||||
List attached Users
|
||||
|
||||
List attached Users.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Group | [required] |
|
||||
**page** | Option<**i32**> | what page to render | |
|
||||
**items_per_page** | Option<**i32**> | item count to render per page | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::GroupUsersList>**](Group_UsersList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## read_group
|
||||
|
||||
> models::GroupRead read_group(id)
|
||||
Find a Group by ID
|
||||
|
||||
Finds the Group with the requested ID and returns it.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Group | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::GroupRead**](GroupRead.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## update_group
|
||||
|
||||
> models::GroupUpdate update_group(id, update_group_request)
|
||||
Updates a Group
|
||||
|
||||
Updates a Group and persists changes to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Group | [required] |
|
||||
**update_group_request** | [**UpdateGroupRequest**](UpdateGroupRequest.md) | Group properties to update | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::GroupUpdate**](GroupUpdate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
12
openapi/docs/GroupCreate.md
Normal file
12
openapi/docs/GroupCreate.md
Normal file
@ -0,0 +1,12 @@
|
||||
# GroupCreate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**name** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
openapi/docs/GroupList.md
Normal file
12
openapi/docs/GroupList.md
Normal file
@ -0,0 +1,12 @@
|
||||
# GroupList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**name** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
openapi/docs/GroupRead.md
Normal file
12
openapi/docs/GroupRead.md
Normal file
@ -0,0 +1,12 @@
|
||||
# GroupRead
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**name** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
openapi/docs/GroupUpdate.md
Normal file
12
openapi/docs/GroupUpdate.md
Normal file
@ -0,0 +1,12 @@
|
||||
# GroupUpdate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**name** | **String** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/GroupUsersList.md
Normal file
59
openapi/docs/GroupUsersList.md
Normal file
@ -0,0 +1,59 @@
|
||||
# GroupUsersList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
13
openapi/docs/ListCard400Response.md
Normal file
13
openapi/docs/ListCard400Response.md
Normal file
@ -0,0 +1,13 @@
|
||||
# ListCard400Response
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**code** | **i32** | |
|
||||
**status** | **String** | |
|
||||
**errors** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
31
openapi/docs/Ue.md
Normal file
31
openapi/docs/Ue.md
Normal file
@ -0,0 +1,31 @@
|
||||
# Ue
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**password** | **String** | |
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**owner** | [**models::User**](User.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
196
openapi/docs/UeApi.md
Normal file
196
openapi/docs/UeApi.md
Normal file
@ -0,0 +1,196 @@
|
||||
# \UeApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**create_ue**](UeApi.md#create_ue) | **POST** /ues | Create a new Ue
|
||||
[**delete_ue**](UeApi.md#delete_ue) | **DELETE** /ues/{id} | Deletes a Ue by ID
|
||||
[**list_ue**](UeApi.md#list_ue) | **GET** /ues | List Ues
|
||||
[**read_ue**](UeApi.md#read_ue) | **GET** /ues/{id} | Find a Ue by ID
|
||||
[**read_ue_owner**](UeApi.md#read_ue_owner) | **GET** /ues/{id}/owner | Find the attached User
|
||||
[**update_ue**](UeApi.md#update_ue) | **PATCH** /ues/{id} | Updates a Ue
|
||||
|
||||
|
||||
|
||||
## create_ue
|
||||
|
||||
> models::UeCreate create_ue(create_ue_request)
|
||||
Create a new Ue
|
||||
|
||||
Creates a new Ue and persists it to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**create_ue_request** | [**CreateUeRequest**](CreateUeRequest.md) | Ue to create | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::UeCreate**](UeCreate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## delete_ue
|
||||
|
||||
> delete_ue(id)
|
||||
Deletes a Ue by ID
|
||||
|
||||
Deletes the Ue with the requested ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Ue | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## list_ue
|
||||
|
||||
> Vec<models::UeList> list_ue(page, items_per_page)
|
||||
List Ues
|
||||
|
||||
List Ues.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | what page to render | |
|
||||
**items_per_page** | Option<**i32**> | item count to render per page | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::UeList>**](UeList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## read_ue
|
||||
|
||||
> models::UeRead read_ue(id)
|
||||
Find a Ue by ID
|
||||
|
||||
Finds the Ue with the requested ID and returns it.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Ue | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::UeRead**](UeRead.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## read_ue_owner
|
||||
|
||||
> models::UeOwnerRead read_ue_owner(id)
|
||||
Find the attached User
|
||||
|
||||
Find the attached User of the Ue with the given ID
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Ue | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::UeOwnerRead**](Ue_OwnerRead.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## update_ue
|
||||
|
||||
> models::UeUpdate update_ue(id, update_ue_request)
|
||||
Updates a Ue
|
||||
|
||||
Updates a Ue and persists changes to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the Ue | [required] |
|
||||
**update_ue_request** | [**UpdateUeRequest**](UpdateUeRequest.md) | Ue properties to update | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::UeUpdate**](UeUpdate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
28
openapi/docs/UeCreate.md
Normal file
28
openapi/docs/UeCreate.md
Normal file
@ -0,0 +1,28 @@
|
||||
# UeCreate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
28
openapi/docs/UeList.md
Normal file
28
openapi/docs/UeList.md
Normal file
@ -0,0 +1,28 @@
|
||||
# UeList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/UeOwnerRead.md
Normal file
59
openapi/docs/UeOwnerRead.md
Normal file
@ -0,0 +1,59 @@
|
||||
# UeOwnerRead
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
28
openapi/docs/UeRead.md
Normal file
28
openapi/docs/UeRead.md
Normal file
@ -0,0 +1,28 @@
|
||||
# UeRead
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
28
openapi/docs/UeUpdate.md
Normal file
28
openapi/docs/UeUpdate.md
Normal file
@ -0,0 +1,28 @@
|
||||
# UeUpdate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
19
openapi/docs/UpdateCardRequest.md
Normal file
19
openapi/docs/UpdateCardRequest.md
Normal file
@ -0,0 +1,19 @@
|
||||
# UpdateCardRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**owner** | Option<**i32**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
12
openapi/docs/UpdateGroupRequest.md
Normal file
12
openapi/docs/UpdateGroupRequest.md
Normal file
@ -0,0 +1,12 @@
|
||||
# UpdateGroupRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**users** | Option<**Vec<i32>**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
28
openapi/docs/UpdateUeRequest.md
Normal file
28
openapi/docs/UpdateUeRequest.md
Normal file
@ -0,0 +1,28 @@
|
||||
# UpdateUeRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**owner** | Option<**i32**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/UpdateUserRequest.md
Normal file
59
openapi/docs/UpdateUserRequest.md
Normal file
@ -0,0 +1,59 @@
|
||||
# UpdateUserRequest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
**card** | Option<**Vec<i32>**> | | [optional]
|
||||
**ue** | Option<**Vec<i32>**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
63
openapi/docs/User.md
Normal file
63
openapi/docs/User.md
Normal file
@ -0,0 +1,63 @@
|
||||
# User
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**token** | Option<**String**> | | [optional]
|
||||
**password** | **String** | |
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
**card** | Option<[**Vec<models::Card>**](Card.md)> | | [optional]
|
||||
**ue** | Option<[**Vec<models::Ue>**](Ue.md)> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
231
openapi/docs/UserApi.md
Normal file
231
openapi/docs/UserApi.md
Normal file
@ -0,0 +1,231 @@
|
||||
# \UserApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**create_user**](UserApi.md#create_user) | **POST** /users | Create a new User
|
||||
[**delete_user**](UserApi.md#delete_user) | **DELETE** /users/{id} | Deletes a User by ID
|
||||
[**list_user**](UserApi.md#list_user) | **GET** /users | List Users
|
||||
[**list_user_card**](UserApi.md#list_user_card) | **GET** /users/{id}/card | List attached Cards
|
||||
[**list_user_ue**](UserApi.md#list_user_ue) | **GET** /users/{id}/ue | List attached Ues
|
||||
[**read_user**](UserApi.md#read_user) | **GET** /users/{id} | Find a User by ID
|
||||
[**update_user**](UserApi.md#update_user) | **PATCH** /users/{id} | Updates a User
|
||||
|
||||
|
||||
|
||||
## create_user
|
||||
|
||||
> models::UserCreate create_user(create_user_request)
|
||||
Create a new User
|
||||
|
||||
Creates a new User and persists it to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**create_user_request** | [**CreateUserRequest**](CreateUserRequest.md) | User to create | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::UserCreate**](UserCreate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## delete_user
|
||||
|
||||
> delete_user(id)
|
||||
Deletes a User by ID
|
||||
|
||||
Deletes the User with the requested ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the User | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
(empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## list_user
|
||||
|
||||
> Vec<models::UserList> list_user(page, items_per_page)
|
||||
List Users
|
||||
|
||||
List Users.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**page** | Option<**i32**> | what page to render | |
|
||||
**items_per_page** | Option<**i32**> | item count to render per page | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::UserList>**](UserList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## list_user_card
|
||||
|
||||
> Vec<models::UserCardList> list_user_card(id, page, items_per_page)
|
||||
List attached Cards
|
||||
|
||||
List attached Cards.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the User | [required] |
|
||||
**page** | Option<**i32**> | what page to render | |
|
||||
**items_per_page** | Option<**i32**> | item count to render per page | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::UserCardList>**](User_CardList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## list_user_ue
|
||||
|
||||
> Vec<models::UserUeList> list_user_ue(id, page, items_per_page)
|
||||
List attached Ues
|
||||
|
||||
List attached Ues.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the User | [required] |
|
||||
**page** | Option<**i32**> | what page to render | |
|
||||
**items_per_page** | Option<**i32**> | item count to render per page | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Vec<models::UserUeList>**](User_UeList.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## read_user
|
||||
|
||||
> models::UserRead read_user(id)
|
||||
Find a User by ID
|
||||
|
||||
Finds the User with the requested ID and returns it.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the User | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::UserRead**](UserRead.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## update_user
|
||||
|
||||
> models::UserUpdate update_user(id, update_user_request)
|
||||
Updates a User
|
||||
|
||||
Updates a User and persists changes to storage.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**id** | **i32** | ID of the User | [required] |
|
||||
**update_user_request** | [**UpdateUserRequest**](UpdateUserRequest.md) | User properties to update | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**models::UserUpdate**](UserUpdate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
19
openapi/docs/UserCardList.md
Normal file
19
openapi/docs/UserCardList.md
Normal file
@ -0,0 +1,19 @@
|
||||
# UserCardList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**skill** | Option<**String**> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**url** | Option<**String**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/UserCreate.md
Normal file
59
openapi/docs/UserCreate.md
Normal file
@ -0,0 +1,59 @@
|
||||
# UserCreate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/UserList.md
Normal file
59
openapi/docs/UserList.md
Normal file
@ -0,0 +1,59 @@
|
||||
# UserList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/UserRead.md
Normal file
59
openapi/docs/UserRead.md
Normal file
@ -0,0 +1,59 @@
|
||||
# UserRead
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
28
openapi/docs/UserUeList.md
Normal file
28
openapi/docs/UserUeList.md
Normal file
@ -0,0 +1,28 @@
|
||||
# UserUeList
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**limit** | Option<**bool**> | | [optional]
|
||||
**limit_boss** | Option<**bool**> | | [optional]
|
||||
**limit_item** | Option<**bool**> | | [optional]
|
||||
**lv** | Option<**i32**> | | [optional]
|
||||
**lv_point** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**i32**> | | [optional]
|
||||
**sword** | Option<**i32**> | | [optional]
|
||||
**card** | Option<**i32**> | | [optional]
|
||||
**mode** | Option<**String**> | | [optional]
|
||||
**cp** | Option<**i32**> | | [optional]
|
||||
**count** | Option<**i32**> | | [optional]
|
||||
**location_x** | Option<**i32**> | | [optional]
|
||||
**location_y** | Option<**i32**> | | [optional]
|
||||
**location_z** | Option<**i32**> | | [optional]
|
||||
**location_n** | Option<**i32**> | | [optional]
|
||||
**author** | Option<**String**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
59
openapi/docs/UserUpdate.md
Normal file
59
openapi/docs/UserUpdate.md
Normal file
@ -0,0 +1,59 @@
|
||||
# UserUpdate
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **i32** | |
|
||||
**username** | **String** | |
|
||||
**did** | Option<**String**> | | [optional]
|
||||
**member** | Option<**bool**> | | [optional]
|
||||
**book** | Option<**bool**> | | [optional]
|
||||
**manga** | Option<**bool**> | | [optional]
|
||||
**badge** | Option<**bool**> | | [optional]
|
||||
**bsky** | Option<**bool**> | | [optional]
|
||||
**mastodon** | Option<**bool**> | | [optional]
|
||||
**delete** | Option<**bool**> | | [optional]
|
||||
**handle** | Option<**bool**> | | [optional]
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**updated_at** | Option<**String**> | | [optional]
|
||||
**raid_at** | Option<**String**> | | [optional]
|
||||
**server_at** | Option<**String**> | | [optional]
|
||||
**egg_at** | Option<**String**> | | [optional]
|
||||
**luck** | Option<**i32**> | | [optional]
|
||||
**luck_at** | Option<**String**> | | [optional]
|
||||
**like** | Option<**i32**> | | [optional]
|
||||
**like_rank** | Option<**i32**> | | [optional]
|
||||
**like_at** | Option<**String**> | | [optional]
|
||||
**fav** | Option<**i32**> | | [optional]
|
||||
**ten** | Option<**bool**> | | [optional]
|
||||
**ten_su** | Option<**i32**> | | [optional]
|
||||
**ten_kai** | Option<**i32**> | | [optional]
|
||||
**aiten** | Option<**i32**> | | [optional]
|
||||
**ten_card** | Option<**String**> | | [optional]
|
||||
**ten_delete** | Option<**String**> | | [optional]
|
||||
**ten_post** | Option<**String**> | | [optional]
|
||||
**ten_get** | Option<**String**> | | [optional]
|
||||
**ten_at** | Option<**String**> | | [optional]
|
||||
**next** | Option<**String**> | | [optional]
|
||||
**room** | Option<**i32**> | | [optional]
|
||||
**model** | Option<**bool**> | | [optional]
|
||||
**model_at** | Option<**String**> | | [optional]
|
||||
**model_attack** | Option<**i32**> | | [optional]
|
||||
**model_limit** | Option<**i32**> | | [optional]
|
||||
**model_skill** | Option<**i32**> | | [optional]
|
||||
**model_mode** | Option<**i32**> | | [optional]
|
||||
**model_critical** | Option<**i32**> | | [optional]
|
||||
**model_critical_d** | Option<**i32**> | | [optional]
|
||||
**game** | Option<**bool**> | | [optional]
|
||||
**game_test** | Option<**bool**> | | [optional]
|
||||
**game_end** | Option<**bool**> | | [optional]
|
||||
**game_account** | Option<**bool**> | | [optional]
|
||||
**game_lv** | Option<**i32**> | | [optional]
|
||||
**coin** | Option<**i32**> | | [optional]
|
||||
**coin_open** | Option<**bool**> | | [optional]
|
||||
**coin_at** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
57
openapi/git_push.sh
Normal file
57
openapi/git_push.sh
Normal file
@ -0,0 +1,57 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
release_note=$3
|
||||
git_host=$4
|
||||
|
||||
if [ "$git_host" = "" ]; then
|
||||
git_host="github.com"
|
||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||
fi
|
||||
|
||||
if [ "$git_user_id" = "" ]; then
|
||||
git_user_id="GIT_USER_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||
fi
|
||||
|
||||
if [ "$git_repo_id" = "" ]; then
|
||||
git_repo_id="GIT_REPO_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||
fi
|
||||
|
||||
if [ "$release_note" = "" ]; then
|
||||
release_note="Minor update"
|
||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||
fi
|
||||
|
||||
# Initialize the local directory as a Git repository
|
||||
git init
|
||||
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
git_remote=$(git remote)
|
||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||
|
||||
if [ "$GIT_TOKEN" = "" ]; then
|
||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
else
|
||||
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
git pull origin master
|
||||
|
||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||
git push origin master 2>&1 | grep -v 'To https'
|
327
openapi/src/apis/card_api.rs
Normal file
327
openapi/src/apis/card_api.rs
Normal file
@ -0,0 +1,327 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`create_card`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum CreateCardError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`delete_card`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DeleteCardError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`draw_done`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DrawDoneError {
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`draw_start`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DrawStartError {
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`list_card`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ListCardError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`read_card`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ReadCardError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`read_card_owner`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ReadCardOwnerError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`update_card`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum UpdateCardError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Creates a new Card and persists it to storage.
|
||||
pub async fn create_card(configuration: &configuration::Configuration, create_card_request: models::CreateCardRequest) -> Result<models::CardCreate, Error<CreateCardError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/cards", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&create_card_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<CreateCardError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes the Card with the requested ID.
|
||||
pub async fn delete_card(configuration: &configuration::Configuration, id: i32) -> Result<(), Error<DeleteCardError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/cards/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DeleteCardError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn draw_done(configuration: &configuration::Configuration, id: i32) -> Result<(), Error<DrawDoneError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/cards/{id}/d", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DrawDoneError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn draw_start(configuration: &configuration::Configuration, id: i32) -> Result<(), Error<DrawStartError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users/{id}/card/start", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DrawStartError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// List Cards.
|
||||
pub async fn list_card(configuration: &configuration::Configuration, page: Option<i32>, items_per_page: Option<i32>) -> Result<Vec<models::CardList>, Error<ListCardError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/cards", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("page", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = items_per_page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("itemsPerPage", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ListCardError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Finds the Card with the requested ID and returns it.
|
||||
pub async fn read_card(configuration: &configuration::Configuration, id: i32) -> Result<models::CardRead, Error<ReadCardError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/cards/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ReadCardError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Find the attached User of the Card with the given ID
|
||||
pub async fn read_card_owner(configuration: &configuration::Configuration, id: i32) -> Result<models::CardOwnerRead, Error<ReadCardOwnerError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/cards/{id}/owner", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ReadCardOwnerError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Updates a Card and persists changes to storage.
|
||||
pub async fn update_card(configuration: &configuration::Configuration, id: i32, update_card_request: models::UpdateCardRequest) -> Result<models::CardUpdate, Error<UpdateCardError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/cards/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&update_card_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<UpdateCardError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
53
openapi/src/apis/configuration.rs
Normal file
53
openapi/src/apis/configuration.rs
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Configuration {
|
||||
pub base_path: String,
|
||||
pub user_agent: Option<String>,
|
||||
pub client: reqwest::Client,
|
||||
pub basic_auth: Option<BasicAuth>,
|
||||
pub oauth_access_token: Option<String>,
|
||||
pub bearer_access_token: Option<String>,
|
||||
pub api_key: Option<ApiKey>,
|
||||
// TODO: take an oauth2 token source, similar to the go one
|
||||
}
|
||||
|
||||
pub type BasicAuth = (String, Option<String>);
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ApiKey {
|
||||
pub prefix: Option<String>,
|
||||
pub key: String,
|
||||
}
|
||||
|
||||
|
||||
impl Configuration {
|
||||
pub fn new() -> Configuration {
|
||||
Configuration::default()
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Configuration {
|
||||
fn default() -> Self {
|
||||
Configuration {
|
||||
base_path: "http://localhost".to_owned(),
|
||||
user_agent: Some("OpenAPI-Generator/0.1.0/rust".to_owned()),
|
||||
client: reqwest::Client::new(),
|
||||
basic_auth: None,
|
||||
oauth_access_token: None,
|
||||
bearer_access_token: None,
|
||||
api_key: None,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
265
openapi/src/apis/group_api.rs
Normal file
265
openapi/src/apis/group_api.rs
Normal file
@ -0,0 +1,265 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`create_group`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum CreateGroupError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`delete_group`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DeleteGroupError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`list_group`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ListGroupError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`list_group_users`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ListGroupUsersError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`read_group`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ReadGroupError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`update_group`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum UpdateGroupError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Creates a new Group and persists it to storage.
|
||||
pub async fn create_group(configuration: &configuration::Configuration, create_group_request: models::CreateGroupRequest) -> Result<models::GroupCreate, Error<CreateGroupError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/groups", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&create_group_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<CreateGroupError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes the Group with the requested ID.
|
||||
pub async fn delete_group(configuration: &configuration::Configuration, id: i32) -> Result<(), Error<DeleteGroupError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/groups/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DeleteGroupError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// List Groups.
|
||||
pub async fn list_group(configuration: &configuration::Configuration, page: Option<i32>, items_per_page: Option<i32>) -> Result<Vec<models::GroupList>, Error<ListGroupError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/groups", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("page", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = items_per_page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("itemsPerPage", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ListGroupError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// List attached Users.
|
||||
pub async fn list_group_users(configuration: &configuration::Configuration, id: i32, page: Option<i32>, items_per_page: Option<i32>) -> Result<Vec<models::GroupUsersList>, Error<ListGroupUsersError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/groups/{id}/users", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("page", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = items_per_page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("itemsPerPage", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ListGroupUsersError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Finds the Group with the requested ID and returns it.
|
||||
pub async fn read_group(configuration: &configuration::Configuration, id: i32) -> Result<models::GroupRead, Error<ReadGroupError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/groups/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ReadGroupError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Updates a Group and persists changes to storage.
|
||||
pub async fn update_group(configuration: &configuration::Configuration, id: i32, update_group_request: models::UpdateGroupRequest) -> Result<models::GroupUpdate, Error<UpdateGroupError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/groups/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&update_group_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<UpdateGroupError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
98
openapi/src/apis/mod.rs
Normal file
98
openapi/src/apis/mod.rs
Normal file
@ -0,0 +1,98 @@
|
||||
use std::error;
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ResponseContent<T> {
|
||||
pub status: reqwest::StatusCode,
|
||||
pub content: String,
|
||||
pub entity: Option<T>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Error<T> {
|
||||
Reqwest(reqwest::Error),
|
||||
Serde(serde_json::Error),
|
||||
Io(std::io::Error),
|
||||
ResponseError(ResponseContent<T>),
|
||||
}
|
||||
|
||||
impl <T> fmt::Display for Error<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let (module, e) = match self {
|
||||
Error::Reqwest(e) => ("reqwest", e.to_string()),
|
||||
Error::Serde(e) => ("serde", e.to_string()),
|
||||
Error::Io(e) => ("IO", e.to_string()),
|
||||
Error::ResponseError(e) => ("response", format!("status code {}", e.status)),
|
||||
};
|
||||
write!(f, "error in {}: {}", module, e)
|
||||
}
|
||||
}
|
||||
|
||||
impl <T: fmt::Debug> error::Error for Error<T> {
|
||||
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
|
||||
Some(match self {
|
||||
Error::Reqwest(e) => e,
|
||||
Error::Serde(e) => e,
|
||||
Error::Io(e) => e,
|
||||
Error::ResponseError(_) => return None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl <T> From<reqwest::Error> for Error<T> {
|
||||
fn from(e: reqwest::Error) -> Self {
|
||||
Error::Reqwest(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl <T> From<serde_json::Error> for Error<T> {
|
||||
fn from(e: serde_json::Error) -> Self {
|
||||
Error::Serde(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl <T> From<std::io::Error> for Error<T> {
|
||||
fn from(e: std::io::Error) -> Self {
|
||||
Error::Io(e)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn urlencode<T: AsRef<str>>(s: T) -> String {
|
||||
::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect()
|
||||
}
|
||||
|
||||
pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> {
|
||||
if let serde_json::Value::Object(object) = value {
|
||||
let mut params = vec![];
|
||||
|
||||
for (key, value) in object {
|
||||
match value {
|
||||
serde_json::Value::Object(_) => params.append(&mut parse_deep_object(
|
||||
&format!("{}[{}]", prefix, key),
|
||||
value,
|
||||
)),
|
||||
serde_json::Value::Array(array) => {
|
||||
for (i, value) in array.iter().enumerate() {
|
||||
params.append(&mut parse_deep_object(
|
||||
&format!("{}[{}][{}]", prefix, key, i),
|
||||
value,
|
||||
));
|
||||
}
|
||||
},
|
||||
serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())),
|
||||
_ => params.push((format!("{}[{}]", prefix, key), value.to_string())),
|
||||
}
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
unimplemented!("Only objects are supported with style=deepObject")
|
||||
}
|
||||
|
||||
pub mod card_api;
|
||||
pub mod group_api;
|
||||
pub mod ue_api;
|
||||
pub mod user_api;
|
||||
|
||||
pub mod configuration;
|
259
openapi/src/apis/ue_api.rs
Normal file
259
openapi/src/apis/ue_api.rs
Normal file
@ -0,0 +1,259 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`create_ue`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum CreateUeError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`delete_ue`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DeleteUeError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`list_ue`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ListUeError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`read_ue`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ReadUeError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`read_ue_owner`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ReadUeOwnerError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`update_ue`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum UpdateUeError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Creates a new Ue and persists it to storage.
|
||||
pub async fn create_ue(configuration: &configuration::Configuration, create_ue_request: models::CreateUeRequest) -> Result<models::UeCreate, Error<CreateUeError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/ues", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&create_ue_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<CreateUeError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes the Ue with the requested ID.
|
||||
pub async fn delete_ue(configuration: &configuration::Configuration, id: i32) -> Result<(), Error<DeleteUeError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/ues/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DeleteUeError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// List Ues.
|
||||
pub async fn list_ue(configuration: &configuration::Configuration, page: Option<i32>, items_per_page: Option<i32>) -> Result<Vec<models::UeList>, Error<ListUeError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/ues", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("page", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = items_per_page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("itemsPerPage", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ListUeError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Finds the Ue with the requested ID and returns it.
|
||||
pub async fn read_ue(configuration: &configuration::Configuration, id: i32) -> Result<models::UeRead, Error<ReadUeError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/ues/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ReadUeError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Find the attached User of the Ue with the given ID
|
||||
pub async fn read_ue_owner(configuration: &configuration::Configuration, id: i32) -> Result<models::UeOwnerRead, Error<ReadUeOwnerError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/ues/{id}/owner", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ReadUeOwnerError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Updates a Ue and persists changes to storage.
|
||||
pub async fn update_ue(configuration: &configuration::Configuration, id: i32, update_ue_request: models::UpdateUeRequest) -> Result<models::UeUpdate, Error<UpdateUeError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/ues/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&update_ue_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<UpdateUeError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
310
openapi/src/apis/user_api.rs
Normal file
310
openapi/src/apis/user_api.rs
Normal file
@ -0,0 +1,310 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
use reqwest;
|
||||
|
||||
use crate::{apis::ResponseContent, models};
|
||||
use super::{Error, configuration};
|
||||
|
||||
|
||||
/// struct for typed errors of method [`create_user`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum CreateUserError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`delete_user`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum DeleteUserError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`list_user`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ListUserError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`list_user_card`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ListUserCardError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`list_user_ue`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ListUserUeError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`read_user`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ReadUserError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method [`update_user`]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum UpdateUserError {
|
||||
Status400(models::ListCard400Response),
|
||||
Status404(models::ListCard400Response),
|
||||
Status409(models::ListCard400Response),
|
||||
Status500(models::ListCard400Response),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Creates a new User and persists it to storage.
|
||||
pub async fn create_user(configuration: &configuration::Configuration, create_user_request: models::CreateUserRequest) -> Result<models::UserCreate, Error<CreateUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&create_user_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<CreateUserError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes the User with the requested ID.
|
||||
pub async fn delete_user(configuration: &configuration::Configuration, id: i32) -> Result<(), Error<DeleteUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
} else {
|
||||
let local_var_entity: Option<DeleteUserError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// List Users.
|
||||
pub async fn list_user(configuration: &configuration::Configuration, page: Option<i32>, items_per_page: Option<i32>) -> Result<Vec<models::UserList>, Error<ListUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("page", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = items_per_page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("itemsPerPage", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ListUserError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// List attached Cards.
|
||||
pub async fn list_user_card(configuration: &configuration::Configuration, id: i32, page: Option<i32>, items_per_page: Option<i32>) -> Result<Vec<models::UserCardList>, Error<ListUserCardError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users/{id}/card", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("page", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = items_per_page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("itemsPerPage", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ListUserCardError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// List attached Ues.
|
||||
pub async fn list_user_ue(configuration: &configuration::Configuration, id: i32, page: Option<i32>, items_per_page: Option<i32>) -> Result<Vec<models::UserUeList>, Error<ListUserUeError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users/{id}/ue", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("page", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = items_per_page {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("itemsPerPage", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ListUserUeError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Finds the User with the requested ID and returns it.
|
||||
pub async fn read_user(configuration: &configuration::Configuration, id: i32) -> Result<models::UserRead, Error<ReadUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<ReadUserError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
/// Updates a User and persists changes to storage.
|
||||
pub async fn update_user(configuration: &configuration::Configuration, id: i32, update_user_request: models::UpdateUserRequest) -> Result<models::UserUpdate, Error<UpdateUserError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/users/{id}", local_var_configuration.base_path, id=id);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
local_var_req_builder = local_var_req_builder.json(&update_user_request);
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<UpdateUserError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
12
openapi/src/lib.rs
Normal file
12
openapi/src/lib.rs
Normal file
@ -0,0 +1,12 @@
|
||||
#![allow(unused_imports)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
extern crate serde;
|
||||
extern crate serde_json;
|
||||
extern crate url;
|
||||
extern crate reqwest;
|
||||
|
||||
pub mod apis;
|
||||
pub mod models;
|
59
openapi/src/models/card.rs
Normal file
59
openapi/src/models/card.rs
Normal file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Card {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "owner")]
|
||||
pub owner: Box<models::User>,
|
||||
}
|
||||
|
||||
impl Card {
|
||||
pub fn new(id: i32, password: String, owner: models::User) -> Card {
|
||||
Card {
|
||||
id,
|
||||
password,
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
token: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
owner: Box::new(owner),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
openapi/src/models/card_create.rs
Normal file
50
openapi/src/models/card_create.rs
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CardCreate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl CardCreate {
|
||||
pub fn new(id: i32) -> CardCreate {
|
||||
CardCreate {
|
||||
id,
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
openapi/src/models/card_list.rs
Normal file
50
openapi/src/models/card_list.rs
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CardList {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl CardList {
|
||||
pub fn new(id: i32) -> CardList {
|
||||
CardList {
|
||||
id,
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/card_owner_read.rs
Normal file
170
openapi/src/models/card_owner_read.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CardOwnerRead {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
}
|
||||
|
||||
impl CardOwnerRead {
|
||||
pub fn new(id: i32, username: String) -> CardOwnerRead {
|
||||
CardOwnerRead {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
openapi/src/models/card_read.rs
Normal file
50
openapi/src/models/card_read.rs
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CardRead {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl CardRead {
|
||||
pub fn new(id: i32) -> CardRead {
|
||||
CardRead {
|
||||
id,
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
openapi/src/models/card_update.rs
Normal file
50
openapi/src/models/card_update.rs
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CardUpdate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl CardUpdate {
|
||||
pub fn new(id: i32) -> CardUpdate {
|
||||
CardUpdate {
|
||||
id,
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
56
openapi/src/models/create_card_request.rs
Normal file
56
openapi/src/models/create_card_request.rs
Normal file
@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CreateCardRequest {
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "owner")]
|
||||
pub owner: i32,
|
||||
}
|
||||
|
||||
impl CreateCardRequest {
|
||||
pub fn new(password: String, owner: i32) -> CreateCardRequest {
|
||||
CreateCardRequest {
|
||||
password,
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
token: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
owner,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
32
openapi/src/models/create_group_request.rs
Normal file
32
openapi/src/models/create_group_request.rs
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CreateGroupRequest {
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "users", skip_serializing_if = "Option::is_none")]
|
||||
pub users: Option<Vec<i32>>,
|
||||
}
|
||||
|
||||
impl CreateGroupRequest {
|
||||
pub fn new(name: String, password: String) -> CreateGroupRequest {
|
||||
CreateGroupRequest {
|
||||
name,
|
||||
password,
|
||||
users: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
83
openapi/src/models/create_ue_request.rs
Normal file
83
openapi/src/models/create_ue_request.rs
Normal file
@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CreateUeRequest {
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "owner")]
|
||||
pub owner: i32,
|
||||
}
|
||||
|
||||
impl CreateUeRequest {
|
||||
pub fn new(password: String, owner: i32) -> CreateUeRequest {
|
||||
CreateUeRequest {
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
password,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
token: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
owner,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
179
openapi/src/models/create_user_request.rs
Normal file
179
openapi/src/models/create_user_request.rs
Normal file
@ -0,0 +1,179 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CreateUserRequest {
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<Vec<i32>>,
|
||||
#[serde(rename = "ue", skip_serializing_if = "Option::is_none")]
|
||||
pub ue: Option<Vec<i32>>,
|
||||
}
|
||||
|
||||
impl CreateUserRequest {
|
||||
pub fn new(username: String, password: String) -> CreateUserRequest {
|
||||
CreateUserRequest {
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
token: None,
|
||||
password,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
card: None,
|
||||
ue: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
35
openapi/src/models/group.rs
Normal file
35
openapi/src/models/group.rs
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Group {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "users", skip_serializing_if = "Option::is_none")]
|
||||
pub users: Option<Vec<models::User>>,
|
||||
}
|
||||
|
||||
impl Group {
|
||||
pub fn new(id: i32, name: String, password: String) -> Group {
|
||||
Group {
|
||||
id,
|
||||
name,
|
||||
password,
|
||||
users: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
29
openapi/src/models/group_create.rs
Normal file
29
openapi/src/models/group_create.rs
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct GroupCreate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
impl GroupCreate {
|
||||
pub fn new(id: i32, name: String) -> GroupCreate {
|
||||
GroupCreate {
|
||||
id,
|
||||
name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
29
openapi/src/models/group_list.rs
Normal file
29
openapi/src/models/group_list.rs
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct GroupList {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
impl GroupList {
|
||||
pub fn new(id: i32, name: String) -> GroupList {
|
||||
GroupList {
|
||||
id,
|
||||
name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
29
openapi/src/models/group_read.rs
Normal file
29
openapi/src/models/group_read.rs
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct GroupRead {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
impl GroupRead {
|
||||
pub fn new(id: i32, name: String) -> GroupRead {
|
||||
GroupRead {
|
||||
id,
|
||||
name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
29
openapi/src/models/group_update.rs
Normal file
29
openapi/src/models/group_update.rs
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct GroupUpdate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
impl GroupUpdate {
|
||||
pub fn new(id: i32, name: String) -> GroupUpdate {
|
||||
GroupUpdate {
|
||||
id,
|
||||
name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/group_users_list.rs
Normal file
170
openapi/src/models/group_users_list.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct GroupUsersList {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
}
|
||||
|
||||
impl GroupUsersList {
|
||||
pub fn new(id: i32, username: String) -> GroupUsersList {
|
||||
GroupUsersList {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
32
openapi/src/models/list_card_400_response.rs
Normal file
32
openapi/src/models/list_card_400_response.rs
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct ListCard400Response {
|
||||
#[serde(rename = "code")]
|
||||
pub code: i32,
|
||||
#[serde(rename = "status")]
|
||||
pub status: String,
|
||||
#[serde(rename = "errors", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub errors: Option<Option<serde_json::Value>>,
|
||||
}
|
||||
|
||||
impl ListCard400Response {
|
||||
pub fn new(code: i32, status: String) -> ListCard400Response {
|
||||
ListCard400Response {
|
||||
code,
|
||||
status,
|
||||
errors: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
68
openapi/src/models/mod.rs
Normal file
68
openapi/src/models/mod.rs
Normal file
@ -0,0 +1,68 @@
|
||||
pub mod card;
|
||||
pub use self::card::Card;
|
||||
pub mod card_create;
|
||||
pub use self::card_create::CardCreate;
|
||||
pub mod card_list;
|
||||
pub use self::card_list::CardList;
|
||||
pub mod card_owner_read;
|
||||
pub use self::card_owner_read::CardOwnerRead;
|
||||
pub mod card_read;
|
||||
pub use self::card_read::CardRead;
|
||||
pub mod card_update;
|
||||
pub use self::card_update::CardUpdate;
|
||||
pub mod create_card_request;
|
||||
pub use self::create_card_request::CreateCardRequest;
|
||||
pub mod create_group_request;
|
||||
pub use self::create_group_request::CreateGroupRequest;
|
||||
pub mod create_ue_request;
|
||||
pub use self::create_ue_request::CreateUeRequest;
|
||||
pub mod create_user_request;
|
||||
pub use self::create_user_request::CreateUserRequest;
|
||||
pub mod group;
|
||||
pub use self::group::Group;
|
||||
pub mod group_create;
|
||||
pub use self::group_create::GroupCreate;
|
||||
pub mod group_list;
|
||||
pub use self::group_list::GroupList;
|
||||
pub mod group_read;
|
||||
pub use self::group_read::GroupRead;
|
||||
pub mod group_update;
|
||||
pub use self::group_update::GroupUpdate;
|
||||
pub mod group_users_list;
|
||||
pub use self::group_users_list::GroupUsersList;
|
||||
pub mod list_card_400_response;
|
||||
pub use self::list_card_400_response::ListCard400Response;
|
||||
pub mod ue;
|
||||
pub use self::ue::Ue;
|
||||
pub mod ue_create;
|
||||
pub use self::ue_create::UeCreate;
|
||||
pub mod ue_list;
|
||||
pub use self::ue_list::UeList;
|
||||
pub mod ue_owner_read;
|
||||
pub use self::ue_owner_read::UeOwnerRead;
|
||||
pub mod ue_read;
|
||||
pub use self::ue_read::UeRead;
|
||||
pub mod ue_update;
|
||||
pub use self::ue_update::UeUpdate;
|
||||
pub mod update_card_request;
|
||||
pub use self::update_card_request::UpdateCardRequest;
|
||||
pub mod update_group_request;
|
||||
pub use self::update_group_request::UpdateGroupRequest;
|
||||
pub mod update_ue_request;
|
||||
pub use self::update_ue_request::UpdateUeRequest;
|
||||
pub mod update_user_request;
|
||||
pub use self::update_user_request::UpdateUserRequest;
|
||||
pub mod user;
|
||||
pub use self::user::User;
|
||||
pub mod user_card_list;
|
||||
pub use self::user_card_list::UserCardList;
|
||||
pub mod user_create;
|
||||
pub use self::user_create::UserCreate;
|
||||
pub mod user_list;
|
||||
pub use self::user_list::UserList;
|
||||
pub mod user_read;
|
||||
pub use self::user_read::UserRead;
|
||||
pub mod user_ue_list;
|
||||
pub use self::user_ue_list::UserUeList;
|
||||
pub mod user_update;
|
||||
pub use self::user_update::UserUpdate;
|
86
openapi/src/models/ue.rs
Normal file
86
openapi/src/models/ue.rs
Normal file
@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Ue {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "owner")]
|
||||
pub owner: Box<models::User>,
|
||||
}
|
||||
|
||||
impl Ue {
|
||||
pub fn new(id: i32, password: String, owner: models::User) -> Ue {
|
||||
Ue {
|
||||
id,
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
password,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
token: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
owner: Box::new(owner),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
77
openapi/src/models/ue_create.rs
Normal file
77
openapi/src/models/ue_create.rs
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UeCreate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UeCreate {
|
||||
pub fn new(id: i32) -> UeCreate {
|
||||
UeCreate {
|
||||
id,
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
77
openapi/src/models/ue_list.rs
Normal file
77
openapi/src/models/ue_list.rs
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UeList {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UeList {
|
||||
pub fn new(id: i32) -> UeList {
|
||||
UeList {
|
||||
id,
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/ue_owner_read.rs
Normal file
170
openapi/src/models/ue_owner_read.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UeOwnerRead {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UeOwnerRead {
|
||||
pub fn new(id: i32, username: String) -> UeOwnerRead {
|
||||
UeOwnerRead {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
77
openapi/src/models/ue_read.rs
Normal file
77
openapi/src/models/ue_read.rs
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UeRead {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UeRead {
|
||||
pub fn new(id: i32) -> UeRead {
|
||||
UeRead {
|
||||
id,
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
77
openapi/src/models/ue_update.rs
Normal file
77
openapi/src/models/ue_update.rs
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UeUpdate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UeUpdate {
|
||||
pub fn new(id: i32) -> UeUpdate {
|
||||
UeUpdate {
|
||||
id,
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
openapi/src/models/update_card_request.rs
Normal file
50
openapi/src/models/update_card_request.rs
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UpdateCardRequest {
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
|
||||
pub owner: Option<i32>,
|
||||
}
|
||||
|
||||
impl UpdateCardRequest {
|
||||
pub fn new() -> UpdateCardRequest {
|
||||
UpdateCardRequest {
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
token: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
owner: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
29
openapi/src/models/update_group_request.rs
Normal file
29
openapi/src/models/update_group_request.rs
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UpdateGroupRequest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
#[serde(rename = "users", skip_serializing_if = "Option::is_none")]
|
||||
pub users: Option<Vec<i32>>,
|
||||
}
|
||||
|
||||
impl UpdateGroupRequest {
|
||||
pub fn new() -> UpdateGroupRequest {
|
||||
UpdateGroupRequest {
|
||||
name: None,
|
||||
users: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
77
openapi/src/models/update_ue_request.rs
Normal file
77
openapi/src/models/update_ue_request.rs
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UpdateUeRequest {
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
|
||||
pub owner: Option<i32>,
|
||||
}
|
||||
|
||||
impl UpdateUeRequest {
|
||||
pub fn new() -> UpdateUeRequest {
|
||||
UpdateUeRequest {
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
token: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
owner: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/update_user_request.rs
Normal file
170
openapi/src/models/update_user_request.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UpdateUserRequest {
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<Vec<i32>>,
|
||||
#[serde(rename = "ue", skip_serializing_if = "Option::is_none")]
|
||||
pub ue: Option<Vec<i32>>,
|
||||
}
|
||||
|
||||
impl UpdateUserRequest {
|
||||
pub fn new() -> UpdateUserRequest {
|
||||
UpdateUserRequest {
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
token: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
card: None,
|
||||
ue: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
182
openapi/src/models/user.rs
Normal file
182
openapi/src/models/user.rs
Normal file
@ -0,0 +1,182 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct User {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "token", skip_serializing_if = "Option::is_none")]
|
||||
pub token: Option<String>,
|
||||
#[serde(rename = "password")]
|
||||
pub password: String,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<Vec<models::Card>>,
|
||||
#[serde(rename = "ue", skip_serializing_if = "Option::is_none")]
|
||||
pub ue: Option<Vec<models::Ue>>,
|
||||
}
|
||||
|
||||
impl User {
|
||||
pub fn new(id: i32, username: String, password: String) -> User {
|
||||
User {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
token: None,
|
||||
password,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
card: None,
|
||||
ue: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
50
openapi/src/models/user_card_list.rs
Normal file
50
openapi/src/models/user_card_list.rs
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserCardList {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "skill", skip_serializing_if = "Option::is_none")]
|
||||
pub skill: Option<String>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
pub status: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UserCardList {
|
||||
pub fn new(id: i32) -> UserCardList {
|
||||
UserCardList {
|
||||
id,
|
||||
card: None,
|
||||
skill: None,
|
||||
status: None,
|
||||
cp: None,
|
||||
url: None,
|
||||
count: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/user_create.rs
Normal file
170
openapi/src/models/user_create.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserCreate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UserCreate {
|
||||
pub fn new(id: i32, username: String) -> UserCreate {
|
||||
UserCreate {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/user_list.rs
Normal file
170
openapi/src/models/user_list.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserList {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UserList {
|
||||
pub fn new(id: i32, username: String) -> UserList {
|
||||
UserList {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/user_read.rs
Normal file
170
openapi/src/models/user_read.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserRead {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UserRead {
|
||||
pub fn new(id: i32, username: String) -> UserRead {
|
||||
UserRead {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
77
openapi/src/models/user_ue_list.rs
Normal file
77
openapi/src/models/user_ue_list.rs
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserUeList {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
|
||||
pub limit: Option<bool>,
|
||||
#[serde(rename = "limit_boss", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_boss: Option<bool>,
|
||||
#[serde(rename = "limit_item", skip_serializing_if = "Option::is_none")]
|
||||
pub limit_item: Option<bool>,
|
||||
#[serde(rename = "lv", skip_serializing_if = "Option::is_none")]
|
||||
pub lv: Option<i32>,
|
||||
#[serde(rename = "lv_point", skip_serializing_if = "Option::is_none")]
|
||||
pub lv_point: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<i32>,
|
||||
#[serde(rename = "sword", skip_serializing_if = "Option::is_none")]
|
||||
pub sword: Option<i32>,
|
||||
#[serde(rename = "card", skip_serializing_if = "Option::is_none")]
|
||||
pub card: Option<i32>,
|
||||
#[serde(rename = "mode", skip_serializing_if = "Option::is_none")]
|
||||
pub mode: Option<String>,
|
||||
#[serde(rename = "cp", skip_serializing_if = "Option::is_none")]
|
||||
pub cp: Option<i32>,
|
||||
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
|
||||
pub count: Option<i32>,
|
||||
#[serde(rename = "location_x", skip_serializing_if = "Option::is_none")]
|
||||
pub location_x: Option<i32>,
|
||||
#[serde(rename = "location_y", skip_serializing_if = "Option::is_none")]
|
||||
pub location_y: Option<i32>,
|
||||
#[serde(rename = "location_z", skip_serializing_if = "Option::is_none")]
|
||||
pub location_z: Option<i32>,
|
||||
#[serde(rename = "location_n", skip_serializing_if = "Option::is_none")]
|
||||
pub location_n: Option<i32>,
|
||||
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
|
||||
pub author: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UserUeList {
|
||||
pub fn new(id: i32) -> UserUeList {
|
||||
UserUeList {
|
||||
id,
|
||||
limit: None,
|
||||
limit_boss: None,
|
||||
limit_item: None,
|
||||
lv: None,
|
||||
lv_point: None,
|
||||
model: None,
|
||||
sword: None,
|
||||
card: None,
|
||||
mode: None,
|
||||
cp: None,
|
||||
count: None,
|
||||
location_x: None,
|
||||
location_y: None,
|
||||
location_z: None,
|
||||
location_n: None,
|
||||
author: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
170
openapi/src/models/user_update.rs
Normal file
170
openapi/src/models/user_update.rs
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Ent Schema API
|
||||
*
|
||||
* This is an auto generated API description made out of an Ent schema definition
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserUpdate {
|
||||
#[serde(rename = "id")]
|
||||
pub id: i32,
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
#[serde(rename = "did", skip_serializing_if = "Option::is_none")]
|
||||
pub did: Option<String>,
|
||||
#[serde(rename = "member", skip_serializing_if = "Option::is_none")]
|
||||
pub member: Option<bool>,
|
||||
#[serde(rename = "book", skip_serializing_if = "Option::is_none")]
|
||||
pub book: Option<bool>,
|
||||
#[serde(rename = "manga", skip_serializing_if = "Option::is_none")]
|
||||
pub manga: Option<bool>,
|
||||
#[serde(rename = "badge", skip_serializing_if = "Option::is_none")]
|
||||
pub badge: Option<bool>,
|
||||
#[serde(rename = "bsky", skip_serializing_if = "Option::is_none")]
|
||||
pub bsky: Option<bool>,
|
||||
#[serde(rename = "mastodon", skip_serializing_if = "Option::is_none")]
|
||||
pub mastodon: Option<bool>,
|
||||
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
|
||||
pub delete: Option<bool>,
|
||||
#[serde(rename = "handle", skip_serializing_if = "Option::is_none")]
|
||||
pub handle: Option<bool>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(rename = "raid_at", skip_serializing_if = "Option::is_none")]
|
||||
pub raid_at: Option<String>,
|
||||
#[serde(rename = "server_at", skip_serializing_if = "Option::is_none")]
|
||||
pub server_at: Option<String>,
|
||||
#[serde(rename = "egg_at", skip_serializing_if = "Option::is_none")]
|
||||
pub egg_at: Option<String>,
|
||||
#[serde(rename = "luck", skip_serializing_if = "Option::is_none")]
|
||||
pub luck: Option<i32>,
|
||||
#[serde(rename = "luck_at", skip_serializing_if = "Option::is_none")]
|
||||
pub luck_at: Option<String>,
|
||||
#[serde(rename = "like", skip_serializing_if = "Option::is_none")]
|
||||
pub like: Option<i32>,
|
||||
#[serde(rename = "like_rank", skip_serializing_if = "Option::is_none")]
|
||||
pub like_rank: Option<i32>,
|
||||
#[serde(rename = "like_at", skip_serializing_if = "Option::is_none")]
|
||||
pub like_at: Option<String>,
|
||||
#[serde(rename = "fav", skip_serializing_if = "Option::is_none")]
|
||||
pub fav: Option<i32>,
|
||||
#[serde(rename = "ten", skip_serializing_if = "Option::is_none")]
|
||||
pub ten: Option<bool>,
|
||||
#[serde(rename = "ten_su", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_su: Option<i32>,
|
||||
#[serde(rename = "ten_kai", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_kai: Option<i32>,
|
||||
#[serde(rename = "aiten", skip_serializing_if = "Option::is_none")]
|
||||
pub aiten: Option<i32>,
|
||||
#[serde(rename = "ten_card", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_card: Option<String>,
|
||||
#[serde(rename = "ten_delete", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_delete: Option<String>,
|
||||
#[serde(rename = "ten_post", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_post: Option<String>,
|
||||
#[serde(rename = "ten_get", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_get: Option<String>,
|
||||
#[serde(rename = "ten_at", skip_serializing_if = "Option::is_none")]
|
||||
pub ten_at: Option<String>,
|
||||
#[serde(rename = "next", skip_serializing_if = "Option::is_none")]
|
||||
pub next: Option<String>,
|
||||
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
|
||||
pub room: Option<i32>,
|
||||
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<bool>,
|
||||
#[serde(rename = "model_at", skip_serializing_if = "Option::is_none")]
|
||||
pub model_at: Option<String>,
|
||||
#[serde(rename = "model_attack", skip_serializing_if = "Option::is_none")]
|
||||
pub model_attack: Option<i32>,
|
||||
#[serde(rename = "model_limit", skip_serializing_if = "Option::is_none")]
|
||||
pub model_limit: Option<i32>,
|
||||
#[serde(rename = "model_skill", skip_serializing_if = "Option::is_none")]
|
||||
pub model_skill: Option<i32>,
|
||||
#[serde(rename = "model_mode", skip_serializing_if = "Option::is_none")]
|
||||
pub model_mode: Option<i32>,
|
||||
#[serde(rename = "model_critical", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical: Option<i32>,
|
||||
#[serde(rename = "model_critical_d", skip_serializing_if = "Option::is_none")]
|
||||
pub model_critical_d: Option<i32>,
|
||||
#[serde(rename = "game", skip_serializing_if = "Option::is_none")]
|
||||
pub game: Option<bool>,
|
||||
#[serde(rename = "game_test", skip_serializing_if = "Option::is_none")]
|
||||
pub game_test: Option<bool>,
|
||||
#[serde(rename = "game_end", skip_serializing_if = "Option::is_none")]
|
||||
pub game_end: Option<bool>,
|
||||
#[serde(rename = "game_account", skip_serializing_if = "Option::is_none")]
|
||||
pub game_account: Option<bool>,
|
||||
#[serde(rename = "game_lv", skip_serializing_if = "Option::is_none")]
|
||||
pub game_lv: Option<i32>,
|
||||
#[serde(rename = "coin", skip_serializing_if = "Option::is_none")]
|
||||
pub coin: Option<i32>,
|
||||
#[serde(rename = "coin_open", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_open: Option<bool>,
|
||||
#[serde(rename = "coin_at", skip_serializing_if = "Option::is_none")]
|
||||
pub coin_at: Option<String>,
|
||||
}
|
||||
|
||||
impl UserUpdate {
|
||||
pub fn new(id: i32, username: String) -> UserUpdate {
|
||||
UserUpdate {
|
||||
id,
|
||||
username,
|
||||
did: None,
|
||||
member: None,
|
||||
book: None,
|
||||
manga: None,
|
||||
badge: None,
|
||||
bsky: None,
|
||||
mastodon: None,
|
||||
delete: None,
|
||||
handle: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
raid_at: None,
|
||||
server_at: None,
|
||||
egg_at: None,
|
||||
luck: None,
|
||||
luck_at: None,
|
||||
like: None,
|
||||
like_rank: None,
|
||||
like_at: None,
|
||||
fav: None,
|
||||
ten: None,
|
||||
ten_su: None,
|
||||
ten_kai: None,
|
||||
aiten: None,
|
||||
ten_card: None,
|
||||
ten_delete: None,
|
||||
ten_post: None,
|
||||
ten_get: None,
|
||||
ten_at: None,
|
||||
next: None,
|
||||
room: None,
|
||||
model: None,
|
||||
model_at: None,
|
||||
model_attack: None,
|
||||
model_limit: None,
|
||||
model_skill: None,
|
||||
model_mode: None,
|
||||
model_critical: None,
|
||||
model_critical_d: None,
|
||||
game: None,
|
||||
game_test: None,
|
||||
game_end: None,
|
||||
game_account: None,
|
||||
game_lv: None,
|
||||
coin: None,
|
||||
coin_open: None,
|
||||
coin_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user