update annotation docs

This commit is contained in:
CaiHQ 2022-10-18 10:01:45 +08:00
parent 213e351560
commit 271e7f7847
4 changed files with 31 additions and 19 deletions

View File

@ -2,11 +2,11 @@
## 环境依赖安装
```bash
#视情况使用pip/pip3
pip install sphinx
pip install recommonmark
pip install sphinx_rtd_theme
pip install sphinx_markdown_tables
pip install sphinx-multiversion
pip3 install sphinx
pip3 install recommonmark
pip3 install sphinx_rtd_theme
pip3 install sphinx_markdown_tables
pip3 install sphinx-multiversion
```
# 更新版本

View File

@ -361,10 +361,22 @@ export function count(args){
```
@Cost({"countGas":true})
export function ....
```
### @ArgSchema
该注解可以检查输入参数格式仅支持JSON格式。
```
@ArgSchema({
"!field1":"string",
"field2":"number",
"array":[{"abc":"number"}]
})
```
### @Mask
该注解可对结果进行一定转换支持差分隐私、MD5等转换函数。
## IO工具类
### 概览

View File

@ -94,15 +94,15 @@ html_static_path = ['_static']
master_doc = 'index'
##latex_elements = {
## 'papersize': 'a4paper',
latex_elements = {
'papersize': 'a4paper',
# Additional stuff for the LaTeX preamble.
## 'preamble': '''
##\usepackage{xeCJK}
##\usepackage{indentfirst}
##\setlength{\parindent}{2em}
##\setCJKmainfont[BoldFont=STFangsong, ItalicFont=STKaiti]{STSong}
##\setCJKsansfont[BoldFont=STHeiti]{STXihei}
##\setCJKmonofont{STFangsong}
##''',
##}
'preamble': '''
\usepackage{xeCJK}
\usepackage{indentfirst}
\setlength{\parindent}{2em}
\setCJKmainfont[BoldFont=STFangsong, ItalicFont=STKaiti]{STSong}
\setCJKsansfont[BoldFont=STHeiti]{STXihei}
\setCJKmonofont{STFangsong}
''',
}

View File

@ -4,4 +4,4 @@
等注解。
onRecover说明
manifest里配置memeory参数。
manifest里配置memory参数。