乐食枋

乐食枋


新增用户发票抬头

简要描述
  • 新增用户发票抬头
请求URL
  • {{domian}}/shop/userInvoiceHeader
请求方式
  • POST
http请求header
  • Content-Type:application/json
  • charset:utf-8 `
  • Authorization : Bearer {{access_token}}
请求参数
参数名 说明 必选 类型 示例
headerType 抬头类型 person:个人, enterprise:企业 String enterprise
headerName 抬头 String 南京盘盈信息科技有限公司
taxNo 税号,企业必填 String 91310104084123648T
defaultInvoice 是否默认发票抬头(0:否 1:是) Integer 1
... 参考实体类
请求示例
  {

    "headerType": "enterprise",     "headerName": "南京盘盈信息科技有限公司",     "taxNo": "91310104084123648T",     "defaultInvoice": 1 }

返回示例
  成功:
{

    "code": 0,     "msg": null,     "data": {         "id": 2,         "projectId": 2,         "userId": 4,         "headerType": "enterprise",         "headerName": "南京盘盈信息科技有限公司",         "taxNo": null,         "bankName": null,         "bankNo": null,         "address": null,         "phone": null,         "createTime": "2023-08-30 16:40:11",         "updateTime": "2023-08-30 16:40:11",         "defaultInvoice": 1     } }

  失败:
  {
    "code": 401,
    "msg": "error",
    "data": "Full authentication is required to access this resource"
  }
返回参数说明
参数名 类型 说明 示例
code int 返回状态码 0:成功 401:鉴权失败
msg String 状态描述
data String 返回数据
- id int id 1
- headerType String 抬头
- taxNo String 税号
- defaultInvoice int 是否默认发票抬头(0:否 1:是) 1
- ... 参考实体类
备注

用户发票抬头实体类:

public class UserInvoiceHeader extends Model<UserInvoiceHeader> {

private static final long serialVersionUID = 1L;

/**
 * 用户id
 */
@TableId
@ApiModelProperty(value="用户id")
private Integer id;

/**
 * 项目id
 */
@ApiModelProperty(value="项目id")
private Integer projectId;

/**
 * 用户id
 */
@ApiModelProperty(value="用户id")
private Integer userId;

/**
 * 抬头类型 person:个人, enterprise:企业
 */
@ApiModelProperty(value="抬头类型 person:个人, enterprise:企业")
private String headerType;

/**
 * 抬头
 */
@ApiModelProperty(value="抬头")
private String headerName;

/**
 * 税号
 */
@ApiModelProperty(value="税号")
private String taxNo;

/**
 * 开户银行
 */
@ApiModelProperty(value="开户银行")
private String bankName;

/**
 * 银行账号
 */
@ApiModelProperty(value="银行账号")
private String bankNo;

/**
 * 企业地址
 */
@ApiModelProperty(value="企业地址")
private String address;

/**
 * 企业电话
 */
@ApiModelProperty(value="企业电话")
private String phone;

/**
 * 邮箱
 */
@ApiModelProperty(value="邮箱")
private String mail;
/**
 * 创建时间
 */
@ApiModelProperty(value="创建时间")
private LocalDateTime createTime;

/**
 * 更新时间
 */
@ApiModelProperty(value="更新时间")
private LocalDateTime updateTime;

/**
 * 是否默认发票抬头
 */
@ApiModelProperty(value="是否默认发票抬头")
private Integer defaultInvoice;

}

页面列表

ITEM_HTML