Change ownership in licenses
This commit is contained in:
10
README.md
10
README.md
@ -18,11 +18,11 @@ 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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user