mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Sensor: Account Balance
This commit is contained in:
parent
b758d4e4ec
commit
bb81b89795
5 changed files with 91 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "account_balance_sensors",
|
||||
"info": {
|
||||
"singularName": "account-balance-sensor",
|
||||
"pluralName": "account-balance-sensors",
|
||||
"displayName": "Sensor: Account Balance"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"value": {
|
||||
"type": "decimal",
|
||||
"required": true
|
||||
},
|
||||
"unit": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"location": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"lastchange": {
|
||||
"type": "biginteger"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* account-balance-sensor controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::account-balance-sensor.account-balance-sensor');
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* account-balance-sensor router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::account-balance-sensor.account-balance-sensor');
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* account-balance-sensor service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::account-balance-sensor.account-balance-sensor');
|
||||
Loading…
Add table
Add a link
Reference in a new issue