elf 4 months ago
parent 10308c20d6
commit c38d4683d3

@ -114,6 +114,7 @@ func Push(c *gin.Context) {
}
func Revoke(c *gin.Context) {
fmt.Println("revoke callback")
data := map[string]interface{}{}
result := map[string]interface{}{
"code": 200,
@ -134,6 +135,7 @@ func Revoke(c *gin.Context) {
}
func Claim(c *gin.Context) {
fmt.Println("claim callback")
data := map[string]interface{}{}
result := map[string]interface{}{
"code": 200,

@ -228,3 +228,42 @@ CREATE TABLE `user` (
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表';
SET FOREIGN_KEY_CHECKS = 1;
CREATE TABLE `revoke` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
`policy_no` varchar(50) NOT NULL DEFAULT '' COMMENT '保单号',
`bank_name` varchar(150) NOT NULL DEFAULT '' COMMENT '银行名称',
`account_name` varchar(150) NOT NULL DEFAULT '' COMMENT '退款账户',
`bank_card_num` varchar(150) NOT NULL DEFAULT '' COMMENT '收款账号',
`back_preminum` varchar(150) NOT NULL DEFAULT '' COMMENT '赔付金额',
`contact_name` varchar(150) NOT NULL DEFAULT '' COMMENT '联系人',
`contact_phone` varchar(150) NOT NULL DEFAULT '' COMMENT '联系电话',
`status` varchar(10) not null default '' comment '状态',
`file_list` text default null COMMENT '退保材料',
`reason` text default null COMMENT '原因材料',
`msg` text default null COMMENT '结果信息',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `udx_policyno` (`policy_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='退保记录';
CREATE TABLE `claim` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
`policy_no` varchar(50) NOT NULL DEFAULT '' COMMENT '保单号',
`bank_name` varchar(150) NOT NULL DEFAULT '' COMMENT '银行名称',
`account_name` varchar(150) NOT NULL DEFAULT '' COMMENT '退款账户',
`bank_card_num` varchar(150) NOT NULL DEFAULT '' COMMENT '收款账号',
`back_preminum` varchar(150) NOT NULL DEFAULT '' COMMENT '赔付金额',
`contact_name` varchar(150) NOT NULL DEFAULT '' COMMENT '联系人',
`contact_phone` varchar(150) NOT NULL DEFAULT '' COMMENT '联系电话',
`status` varchar(10) not null default '' comment '状态',
`file_list` text default null COMMENT '理赔材料',
`reason` text default null COMMENT '原因材料',
`msg` text default null COMMENT '结果信息',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `udx_policyno` (`policy_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='理赔记录';

@ -509,7 +509,7 @@ func (s *orderService) ZkingRevoke(revoke *model.Revoke) (*zking.Result, error)
Version: "1.0.0",
Data: string(data),
}
result, err := zking.InsureApi.SuixingClaim(param)
result, err := zking.InsureApi.SuixingRevoke(param)
if err != nil {
return nil, err
}

Loading…
Cancel
Save