Change ownership in licenses

This commit is contained in:
Braydon 2023-12-02 03:44:58 -05:00
parent 49b8fe39a5
commit f32a92fe54
2 changed files with 8 additions and 5 deletions

@ -19,10 +19,10 @@ POST /check
#### Body #### Body
| Key | Type | Description | | Key | Type | Description |
|:----------|:---------|:-----------------------------------------------| |:----------|:---------|:----------------------------------------------------------------|
| `key` | `string` | **Required**. Your license key | | `key` | `string` | **Required**. Your base64 encrypted license key |
| `product` | `string` | **Required**. The product the license is for | | `product` | `string` | **Required**. The product the license is for |
| `hwid` | `string` | **Required**. The hardware id of the requester | | `hwid` | `string` | **Required**. The base64 encrypted hardware id of the requester |
#### Response #### Response

@ -14,6 +14,7 @@ import me.braydon.license.exception.LicenseHwidLimitExceededException;
import me.braydon.license.exception.LicenseIpLimitExceededException; import me.braydon.license.exception.LicenseIpLimitExceededException;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import java.util.Date; import java.util.Date;
import java.util.Set; import java.util.Set;
@ -49,6 +50,7 @@ public class License {
* If this is -1, the license is not owned by anyone. * If this is -1, the license is not owned by anyone.
* </p> * </p>
*/ */
@Field("owner.snowflake")
private long ownerSnowflake; private long ownerSnowflake;
/** /**
@ -57,6 +59,7 @@ public class License {
* If this is null, the license is not owned by anyone. * If this is null, the license is not owned by anyone.
* </p> * </p>
*/ */
@Field("owner.name")
private String ownerName; private String ownerName;
/** /**