日历日期转换

公历、农历、干支纪元3者互转
¥0.001/次
API文档

公共参数

公共请求说明

说明描述
请求地址登录后可见
请求方式GETPOST

公共请求参数

参数类型是否必填描述
methodstring是接口名称,当前接口名称:dateConversion
app_idstring是草庐分配给你的应用ID
signtypestring是加密方式,目前固定为:md5
signstring是签名串,详见签名
versionstring是接口版本号,当前接口版本:v1.0
biz_contentstring是业务参数合计,json字符串

业务请求参数

参数类型是否必填描述
typestring是

业务类型,包括:

1:公历

2:农历

3:干支纪元

datestring是

日期,其格式为:

type为1或2时,格式为yyyy-mm-dd,如2020-02-02

type为3时,格式为xx年yy月zz日,其中x、y、z为干支

公共响应参数

参数类型是否必填描述
codestring是网关返回码,success或fail
msgstring是网关返回码描述
runtimestring是系统执行时间,单位秒
dataobject否code为success时有,接口业务数据

业务响应参数

参数类型是否必填描述
sub_codestring是业务返回码,success或fail
sub_msgstring是业务返回码描述
sub_dataobject否sub_code为success时显示
+yearstring是公历-年
+monthstring是公历-月
+daystring是公历-日
+lunarYearstring是农历-年
+lunarMonthstring是农历-月-小写
+lunarDaystring是农历-日-小写
+lMonthstring是农历-月-大写
+lDaystring是农历-日-大写
+gzYearstring是干支-年
+gzMonthstring是干支-月
+gzDaystring是干支-日
+cnDaystring是星期
+animalstring是生肖
+starSignstring是星座