瀏覽代碼

login state

master
jefry 4 年之前
父節點
當前提交
2f228cab50
共有 6 個文件被更改,包括 165 次插入0 次删除
  1. +52
    -0
      api/partners-login-state/config/routes.json
  2. +8
    -0
      api/partners-login-state/controllers/partners-login-state.js
  3. +8
    -0
      api/partners-login-state/models/partners-login-state.js
  4. +22
    -0
      api/partners-login-state/models/partners-login-state.settings.json
  5. +8
    -0
      api/partners-login-state/services/partners-login-state.js
  6. +67
    -0
      extensions/users-permissions/models/User.settings.json

+ 52
- 0
api/partners-login-state/config/routes.json 查看文件

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/partners-login-states",
"handler": "partners-login-state.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/partners-login-states/count",
"handler": "partners-login-state.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/partners-login-states/:id",
"handler": "partners-login-state.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/partners-login-states",
"handler": "partners-login-state.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/partners-login-states/:id",
"handler": "partners-login-state.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/partners-login-states/:id",
"handler": "partners-login-state.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/partners-login-state/controllers/partners-login-state.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers)
* to customize this controller
*/

module.exports = {};

+ 8
- 0
api/partners-login-state/models/partners-login-state.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};

+ 22
- 0
api/partners-login-state/models/partners-login-state.settings.json 查看文件

@@ -0,0 +1,22 @@
{
"kind": "collectionType",
"collectionName": "partners_login_states",
"info": {
"name": "PartnersLoginState"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"user": {
"plugin": "users-permissions",
"model": "user",
"via": "partners_login_states"
},
"business_partner": {
"model": "business-partner"
}
}
}

+ 8
- 0
api/partners-login-state/services/partners-login-state.js 查看文件

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services)
* to customize this service
*/

module.exports = {};

+ 67
- 0
extensions/users-permissions/models/User.settings.json 查看文件

@@ -0,0 +1,67 @@
{
"kind": "collectionType",
"collectionName": "users-permissions_user",
"info": {
"name": "user",
"description": ""
},
"options": {
"draftAndPublish": false,
"timestamps": true
},
"attributes": {
"username": {
"type": "string",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"email": {
"type": "email",
"minLength": 6,
"configurable": false,
"required": true
},
"provider": {
"type": "string",
"configurable": false
},
"password": {
"type": "password",
"minLength": 6,
"configurable": false,
"private": true
},
"resetPasswordToken": {
"type": "string",
"configurable": false,
"private": true
},
"confirmationToken": {
"type": "string",
"configurable": false,
"private": true
},
"confirmed": {
"type": "boolean",
"default": false,
"configurable": false
},
"blocked": {
"type": "boolean",
"default": false,
"configurable": false
},
"role": {
"model": "role",
"via": "users",
"plugin": "users-permissions",
"configurable": false
},
"partners_login_states": {
"via": "user",
"collection": "partners-login-state"
}
}
}

Loading…
取消
儲存