Compare commits
	
		
			10 Commits
		
	
	
		
			7735b710dd
			...
			7ea988ccc5
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7ea988ccc5 | |||
| f583a771d6 | |||
| 23cf374c95 | |||
| 44bff5db82 | |||
| 786347f0d5 | |||
| a8f0107656 | |||
| 090538be0d | |||
| 94cf7ba83e | |||
| 0788c6a770 | |||
| a3f38b8377 | 
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -1,7 +1,7 @@ | |||||||
| // Code generated by protoc-gen-go-triple. DO NOT EDIT.
 | // Code generated by protoc-gen-go-triple. DO NOT EDIT.
 | ||||||
| // versions:
 | // versions:
 | ||||||
| // - protoc-gen-go-triple v1.0.8
 | // - protoc-gen-go-triple v1.0.8
 | ||||||
| // - protoc             v3.20.3
 | // - protoc             v4.24.0--rc1
 | ||||||
| // source: pb/bundle.proto
 | // source: pb/bundle.proto
 | ||||||
| 
 | 
 | ||||||
| package bundle | package bundle | ||||||
| @ -50,11 +50,11 @@ type BundleClient interface { | |||||||
| 	OrderRecordsListV2(ctx context.Context, in *OrderRecordsRequestV2, opts ...grpc_go.CallOption) (*OrderRecordsResponseV2, common.ErrorWithAttachment) | 	OrderRecordsListV2(ctx context.Context, in *OrderRecordsRequestV2, opts ...grpc_go.CallOption) (*OrderRecordsResponseV2, common.ErrorWithAttachment) | ||||||
| 	OrderListByOrderNo(ctx context.Context, in *OrderInfoByOrderNoRequest, opts ...grpc_go.CallOption) (*OrderInfoByOrderNoResp, common.ErrorWithAttachment) | 	OrderListByOrderNo(ctx context.Context, in *OrderInfoByOrderNoRequest, opts ...grpc_go.CallOption) (*OrderInfoByOrderNoResp, common.ErrorWithAttachment) | ||||||
| 	OnlyAddValueListByOrderNo(ctx context.Context, in *OnlyAddValueListByOrderNoRequest, opts ...grpc_go.CallOption) (*OnlyAddValueListByOrderNoResp, common.ErrorWithAttachment) | 	OnlyAddValueListByOrderNo(ctx context.Context, in *OnlyAddValueListByOrderNoRequest, opts ...grpc_go.CallOption) (*OnlyAddValueListByOrderNoResp, common.ErrorWithAttachment) | ||||||
| 	// 增值套餐
 | 	//增值套餐
 | ||||||
| 	CreateValueAddBundle(ctx context.Context, in *CreateValueAddBundleRequest, opts ...grpc_go.CallOption) (*CreateValueAddBundleResponse, common.ErrorWithAttachment) | 	CreateValueAddBundle(ctx context.Context, in *CreateValueAddBundleRequest, opts ...grpc_go.CallOption) (*CreateValueAddBundleResponse, common.ErrorWithAttachment) | ||||||
| 	ValueAddBundleList(ctx context.Context, in *ValueAddBundleListRequest, opts ...grpc_go.CallOption) (*ValueAddBundleListResponse, common.ErrorWithAttachment) | 	ValueAddBundleList(ctx context.Context, in *ValueAddBundleListRequest, opts ...grpc_go.CallOption) (*ValueAddBundleListResponse, common.ErrorWithAttachment) | ||||||
| 	ValueAddBundleDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) | 	ValueAddBundleDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) | ||||||
| 	// 新增值服务
 | 	//新增值服务
 | ||||||
| 	SaveValueAddService(ctx context.Context, in *ValueAddServiceLang, opts ...grpc_go.CallOption) (*SaveResponse, common.ErrorWithAttachment) | 	SaveValueAddService(ctx context.Context, in *ValueAddServiceLang, opts ...grpc_go.CallOption) (*SaveResponse, common.ErrorWithAttachment) | ||||||
| 	ValueAddServiceList(ctx context.Context, in *ValueAddServiceListRequest, opts ...grpc_go.CallOption) (*ValueAddServiceListResponse, common.ErrorWithAttachment) | 	ValueAddServiceList(ctx context.Context, in *ValueAddServiceListRequest, opts ...grpc_go.CallOption) (*ValueAddServiceListResponse, common.ErrorWithAttachment) | ||||||
| 	ValueAddServiceDetail(ctx context.Context, in *ValueAddServiceDetailRequest, opts ...grpc_go.CallOption) (*ValueAddServiceDetailResponse, common.ErrorWithAttachment) | 	ValueAddServiceDetail(ctx context.Context, in *ValueAddServiceDetailRequest, opts ...grpc_go.CallOption) (*ValueAddServiceDetailResponse, common.ErrorWithAttachment) | ||||||
| @ -75,7 +75,7 @@ type BundleClient interface { | |||||||
| 	GetVedioWorkDetail(ctx context.Context, in *GetVedioWorkDetailReq, opts ...grpc_go.CallOption) (*GetVedioeWorkDetailResp, common.ErrorWithAttachment) | 	GetVedioWorkDetail(ctx context.Context, in *GetVedioWorkDetailReq, opts ...grpc_go.CallOption) (*GetVedioeWorkDetailResp, common.ErrorWithAttachment) | ||||||
| 	ToBeComfirmedWorks(ctx context.Context, in *ToBeComfirmedWorksReq, opts ...grpc_go.CallOption) (*ToBeComfirmedWorksResp, common.ErrorWithAttachment) | 	ToBeComfirmedWorks(ctx context.Context, in *ToBeComfirmedWorksReq, opts ...grpc_go.CallOption) (*ToBeComfirmedWorksResp, common.ErrorWithAttachment) | ||||||
| 	ConfirmWork(ctx context.Context, in *ConfirmWorkReq, opts ...grpc_go.CallOption) (*ConfirmWorkResp, common.ErrorWithAttachment) | 	ConfirmWork(ctx context.Context, in *ConfirmWorkReq, opts ...grpc_go.CallOption) (*ConfirmWorkResp, common.ErrorWithAttachment) | ||||||
| 	// 对账单
 | 	//对账单
 | ||||||
| 	GetReconciliationList(ctx context.Context, in *GetReconciliationListReq, opts ...grpc_go.CallOption) (*GetReconciliationListResp, common.ErrorWithAttachment) | 	GetReconciliationList(ctx context.Context, in *GetReconciliationListReq, opts ...grpc_go.CallOption) (*GetReconciliationListResp, common.ErrorWithAttachment) | ||||||
| 	CreateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | 	CreateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | ||||||
| 	UpdateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | 	UpdateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | ||||||
| @ -456,11 +456,11 @@ type BundleServer interface { | |||||||
| 	OrderRecordsListV2(context.Context, *OrderRecordsRequestV2) (*OrderRecordsResponseV2, error) | 	OrderRecordsListV2(context.Context, *OrderRecordsRequestV2) (*OrderRecordsResponseV2, error) | ||||||
| 	OrderListByOrderNo(context.Context, *OrderInfoByOrderNoRequest) (*OrderInfoByOrderNoResp, error) | 	OrderListByOrderNo(context.Context, *OrderInfoByOrderNoRequest) (*OrderInfoByOrderNoResp, error) | ||||||
| 	OnlyAddValueListByOrderNo(context.Context, *OnlyAddValueListByOrderNoRequest) (*OnlyAddValueListByOrderNoResp, error) | 	OnlyAddValueListByOrderNo(context.Context, *OnlyAddValueListByOrderNoRequest) (*OnlyAddValueListByOrderNoResp, error) | ||||||
| 	// 增值套餐
 | 	//增值套餐
 | ||||||
| 	CreateValueAddBundle(context.Context, *CreateValueAddBundleRequest) (*CreateValueAddBundleResponse, error) | 	CreateValueAddBundle(context.Context, *CreateValueAddBundleRequest) (*CreateValueAddBundleResponse, error) | ||||||
| 	ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) | 	ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) | ||||||
| 	ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) | 	ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) | ||||||
| 	// 新增值服务
 | 	//新增值服务
 | ||||||
| 	SaveValueAddService(context.Context, *ValueAddServiceLang) (*SaveResponse, error) | 	SaveValueAddService(context.Context, *ValueAddServiceLang) (*SaveResponse, error) | ||||||
| 	ValueAddServiceList(context.Context, *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error) | 	ValueAddServiceList(context.Context, *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error) | ||||||
| 	ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) | 	ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) | ||||||
| @ -481,7 +481,7 @@ type BundleServer interface { | |||||||
| 	GetVedioWorkDetail(context.Context, *GetVedioWorkDetailReq) (*GetVedioeWorkDetailResp, error) | 	GetVedioWorkDetail(context.Context, *GetVedioWorkDetailReq) (*GetVedioeWorkDetailResp, error) | ||||||
| 	ToBeComfirmedWorks(context.Context, *ToBeComfirmedWorksReq) (*ToBeComfirmedWorksResp, error) | 	ToBeComfirmedWorks(context.Context, *ToBeComfirmedWorksReq) (*ToBeComfirmedWorksResp, error) | ||||||
| 	ConfirmWork(context.Context, *ConfirmWorkReq) (*ConfirmWorkResp, error) | 	ConfirmWork(context.Context, *ConfirmWorkReq) (*ConfirmWorkResp, error) | ||||||
| 	// 对账单
 | 	//对账单
 | ||||||
| 	GetReconciliationList(context.Context, *GetReconciliationListReq) (*GetReconciliationListResp, error) | 	GetReconciliationList(context.Context, *GetReconciliationListReq) (*GetReconciliationListResp, error) | ||||||
| 	CreateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | 	CreateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | ||||||
| 	UpdateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | 	UpdateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | ||||||
|  | |||||||
| @ -679,6 +679,8 @@ func AntomWebhook(c *gin.Context) { | |||||||
| 			TimeUnit:                    timeUnit, | 			TimeUnit:                    timeUnit, | ||||||
| 			AssociatedorderNumber:       resp.OutTradeNo, //增值服务订单号
 | 			AssociatedorderNumber:       resp.OutTradeNo, //增值服务订单号
 | ||||||
| 			Type:                        2,               //自行购买
 | 			Type:                        2,               //自行购买
 | ||||||
|  | 			OperatorName:                orderLimit.UserName, | ||||||
|  | 			OperatorId:                  orderLimit.UserId, | ||||||
| 		}) | 		}) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			service.Error(c, err) | 			service.Error(c, err) | ||||||
|  | |||||||
| @ -118,7 +118,13 @@ func ToExcelByType(titleList []string, dataList []interface{}, dataType string, | |||||||
| // ResponseXls  content 为上面生成的io.ReadSeeker, fileTag 为返回前端的文件名
 | // ResponseXls  content 为上面生成的io.ReadSeeker, fileTag 为返回前端的文件名
 | ||||||
| func ResponseXls(c *gin.Context, content io.ReadSeeker, fileTag string) { | func ResponseXls(c *gin.Context, content io.ReadSeeker, fileTag string) { | ||||||
| 	fileName := fmt.Sprintf("%s.%s", fileTag, ExcelPrefix) | 	fileName := fmt.Sprintf("%s.%s", fileTag, ExcelPrefix) | ||||||
| 	c.Writer.Header().Add("Content-Disposition", fmt.Sprintf(`attachment; filename="%s"`, fileName)) | 	// 返回 Excel 文件流给前端
 | ||||||
| 	c.Writer.Header().Add("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") | 	c.Header("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") | ||||||
|  | 	c.Header("Content-Disposition", fmt.Sprintf(`attachment; filename="%s"`, fileName)) | ||||||
|  | 	c.Header("File-Name", fmt.Sprintf("%s", fileName)) | ||||||
|  | 	c.Header("Access-Control-Expose-Headers", "File-Name") | ||||||
|  | 	//_ = c.Writer(c.Writer)
 | ||||||
|  | 	//c.Writer.Header().Add("Content-Disposition", fmt.Sprintf(`attachment; filename="%s"`, fileName))
 | ||||||
|  | 	//c.Writer.Header().Add("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
 | ||||||
| 	http.ServeContent(c.Writer, c.Request, fileName, time.Now(), content) | 	http.ServeContent(c.Writer, c.Request, fileName, time.Now(), content) | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user