You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# utils通用包
|
|
|
|
|
|
|
|
<!-- TOC -->
|
|
|
|
* [utils通用包](#utils通用包)
|
|
|
|
* [安装](#安装)
|
|
|
|
* [通用包](#通用包)
|
|
|
|
* [pagination](#pagination)
|
|
|
|
* [transport:通用http ResponseEncoder](#transport通用http-responseencoder)
|
|
|
|
* [meta:跨服务meta信息设置和获取](#meta跨服务meta信息设置和获取)
|
|
|
|
* [encrypt:对称加密](#encrypt对称加密)
|
|
|
|
<!-- TOC -->
|
|
|
|
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
1. 设置私有仓库
|
|
|
|
|
|
|
|
```shell
|
|
|
|
go env -w GOPRIVATE=gitea.drugeyes.vip
|
|
|
|
```
|
|
|
|
|
|
|
|
2. 设置git
|
|
|
|
|
|
|
|
```shell
|
|
|
|
git config --global url."ssh://gitea@gitea.drugeyes.vip".insteadOf "https://gitea.drugeyes.vip"
|
|
|
|
```
|
|
|
|
|
|
|
|
3. 拉取对应版本
|
|
|
|
|
|
|
|
```shell
|
|
|
|
go get gitea.drugeyes.vip/pharnexbase/tools@v1.0.0
|
|
|
|
```
|
|
|
|
|
|
|
|
## 通用包
|
|
|
|
|
|
|
|
### pagination
|
|
|
|
|
|
|
|
* v1
|
|
|
|
|
|
|
|
> 说明
|
|
|
|
|
|
|
|
### transport:通用http ResponseEncoder
|
|
|
|
|
|
|
|
* v1
|
|
|
|
|
|
|
|
> 通用http ResponseEncoder
|
|
|
|
|
|
|
|
### meta:跨服务meta信息设置和获取
|
|
|
|
|
|
|
|
* v1
|
|
|
|
|
|
|
|
> 跨服务meta信息设置和获取
|
|
|
|
> - user(基础用户信息)
|
|
|
|
|
|
|
|
### encrypt:对称加密
|
|
|
|
|
|
|
|
* v1
|
|
|
|
|
|
|
|
> 对称加密,目前包含:SHA1PRNG
|