Change ownership in licenses
This commit is contained in:
10
README.md
10
README.md
@ -18,11 +18,11 @@ POST /check
|
||||
|
||||
#### Body
|
||||
|
||||
| Key | Type | Description |
|
||||
|:----------|:---------|:-----------------------------------------------|
|
||||
| `key` | `string` | **Required**. Your license key |
|
||||
| `product` | `string` | **Required**. The product the license is for |
|
||||
| `hwid` | `string` | **Required**. The hardware id of the requester |
|
||||
| Key | Type | Description |
|
||||
|:----------|:---------|:----------------------------------------------------------------|
|
||||
| `key` | `string` | **Required**. Your base64 encrypted license key |
|
||||
| `product` | `string` | **Required**. The product the license is for |
|
||||
| `hwid` | `string` | **Required**. The base64 encrypted hardware id of the requester |
|
||||
|
||||
#### Response
|
||||
|
||||
|
@ -14,6 +14,7 @@ import me.braydon.license.exception.LicenseHwidLimitExceededException;
|
||||
import me.braydon.license.exception.LicenseIpLimitExceededException;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
import org.springframework.data.mongodb.core.mapping.Field;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.Set;
|
||||
@ -49,6 +50,7 @@ public class License {
|
||||
* If this is -1, the license is not owned by anyone.
|
||||
* </p>
|
||||
*/
|
||||
@Field("owner.snowflake")
|
||||
private long ownerSnowflake;
|
||||
|
||||
/**
|
||||
@ -57,6 +59,7 @@ public class License {
|
||||
* If this is null, the license is not owned by anyone.
|
||||
* </p>
|
||||
*/
|
||||
@Field("owner.name")
|
||||
private String ownerName;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user