文档
测试

新建预算模板

POST
http://test.52miaosuan.com:8090/miaosuan/budget/template/add

接口描述

新建一个预算模板

请求头

参数名
类型
描述
必填
user_id
int
用户编号
必填

请求参数

参数名
类型
描述
必填
name
string
预算模板名称
必填
type
int
预算类型,枚举类型:0 - 半包,1 - 全包,2 - 套餐, 99 - 其他
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:成功
必填
data
object
数据字典
必填
template_id
int
新建成功之后的预算模板ID
必填

说明 / 示例

返回响应: ``` { "code": 0, "msg": "成功", "data": { "template_id": 1 } } ```