base on layui [http://www.layui.com/doc/],基于layui. ## use 使用方法 ```html <link rel="stylesheet" href="//unpkg.com/magic-input/dist/magic-input.min.css"> <link rel="stylesheet" href="//unpkg.com/castle-ui/dist/css/layui.css"> <script src="//
published 1.0.39 6 years agoSupport both JSON AND Buffer ## how to use it install this package ```shell npm i @ctsy/rpc ``` import this package ```typescript import RPC from '@ctsy/rpc' let rpc = new RPC(); let buffer = rpc.encode();
published 1.0.13 4 years ago## 安装/install ```shell npm install @ctsy/chinese npx install @ctsy/chinese yarn add @ctsy/chinese ```
published 1.0.1 5 years ago- published 1.0.16 a year ago
## feature 1. config class and default config driver 2. allow extends to reconfig
published 2.0.14 2 years ago> 封装的Sequelize作为数据库操作底层,对Sequelize的部分操作进行了简化,语法结构类似于ThinkPHP3.2结构。 需要依赖于 castle-config/castle-controller/sequelize,其它依赖请参见相关库的依然范围 # 典型基础用法 ```typescript //获取模型对象 let model = await this.M('Sex'); //启动事务 =1 await this.startTrans(); //添加数据 // INSERT INTO se
published 2.0.47 2 years ago- published 2.0.17 2 years ago
```typescript // 基础控制器 // 提供 this._session,this._cookie,this.M,this.R基础操作 import {BaseController} from 'castle-controller' export default class cc extends BaseController{
published 2.0.30 2 years agoSupport both JSON AND Buffer ## how to use it install this package ```shell npm i @ctsy/rpc ``` import this package ```typescript import RPC from '@ctsy/rpc' let rpc = new RPC(); let buffer = rpc.encode();
published 1.0.16 5 years ago- published 2.0.12 5 years ago
## feature 1. default use cookie 2. custom use token or other key to identify user
published 1.0.18 2 years ago- published 1.0.9 5 years ago
WebSocket RPC Client ,Support both nodejs and brower
published 1.0.13 5 years ago- published 1.0.2 5 years ago
request for web vue and nodejs with castle`s json result
published 1.0.22 a year ago```typescript import { RSA, MD5 } from './index' import { AES } from '../dist'; //RSA 加密 let data = "a", key = "a"; RSA.publicEncrypt(data, key) RSA.privateEncrypt(data, key); RSA.publicDecrypt(data, key); RSA.privateDecrypt(data, key)
published 1.0.9 5 years ago