Skip to content

Commit

Permalink
refactor(CHANGELOG): update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Jun 29, 2021
1 parent 694fe55 commit f9ca7c2
Show file tree
Hide file tree
Showing 21 changed files with 378 additions and 261 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
.DS_Store
test
.vim
bin/*
dist/
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.4] - 2021-06-29

### Added

- goreleaser
- doc.go in each api/model

### Changed

### Deprecated

### Removed

### Fixed

- README.
- Fixed new lines generated by go template which may break go doc.

## [1.1.3] - 2021-06-29

### Added
Expand Down
Binary file modified bin/generator
Binary file not shown.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opentaobao

const (
GitVersion = "v1.1.3"
GitCommit = "2587351b"
GitCommit = "694fe55f"
GitDate = "<no value>"
GitBuiltBy = "unknown"
)
86 changes: 22 additions & 64 deletions model/alihealthoutflow/DrugDTO.go
Original file line number Diff line number Diff line change
@@ -1,71 +1,29 @@
package alihealthoutflow

// DrugDto
type DrugDto struct {
// 规格
Spec string `json:"spec,omitempty" xml:"spec,omitempty"`
// DrugDTO
type DrugDTO struct {
// 用药单位
DoseUnit string `json:"dose_unit,omitempty" xml:"dose_unit,omitempty"`
// 药品名称
DrugName string `json:"drug_name,omitempty" xml:"drug_name,omitempty"`
// 总量
Total string `json:"total,omitempty" xml:"total,omitempty"`
// 药品通用名
CommonDrugName string `json:"common_drug_name,omitempty" xml:"common_drug_name,omitempty"`
// 药品名
DrugName string `json:"drug_name,omitempty" xml:"drug_name,omitempty"`
// 用法用量
DrugUsageList []DrugUsageVo `json:"drug_usage_list,omitempty" xml:"drug_usage_list>drug_usage_vo,omitempty"`
// 剂型
DoseForm string `json:"dose_form,omitempty" xml:"dose_form,omitempty"`
// 药品通用名拼音
DrugCommonNamePy string `json:"drug_common_name_py,omitempty" xml:"drug_common_name_py,omitempty"`
// 药品名拼音
DrugNamePy string `json:"drug_name_py,omitempty" xml:"drug_name_py,omitempty"`
// 是否允许电子处方
ElectricPres bool `json:"electric_pres,omitempty" xml:"electric_pres,omitempty"`
// 省平台ID
ProvinceDrugCode string `json:"province_drug_code,omitempty" xml:"province_drug_code,omitempty"`
// 适应症
Indication string `json:"indication,omitempty" xml:"indication,omitempty"`
// HIS药品名称
HisDrugName string `json:"his_drug_name,omitempty" xml:"his_drug_name,omitempty"`
// 每次剂量单位
SingleDosageUnit string `json:"single_dosage_unit,omitempty" xml:"single_dosage_unit,omitempty"`
// 每次剂量值
SingleDosage string `json:"single_dosage,omitempty" xml:"single_dosage,omitempty"`
// 包装规格--最小销售单位
PackSpecSaleUnit string `json:"pack_spec_sale_unit,omitempty" xml:"pack_spec_sale_unit,omitempty"`
// 包装规格--最小使用单位
PackSpecUseUnit string `json:"pack_spec_use_unit,omitempty" xml:"pack_spec_use_unit,omitempty"`
// 包装规格--包装数量
PackSpecAmount string `json:"pack_spec_amount,omitempty" xml:"pack_spec_amount,omitempty"`
// 包装单位-装量单位
PackUnit string `json:"pack_unit,omitempty" xml:"pack_unit,omitempty"`
// 包装单位-装量值
PackQty string `json:"pack_qty,omitempty" xml:"pack_qty,omitempty"`
// 单价
RetailPrice string `json:"retail_price,omitempty" xml:"retail_price,omitempty"`
// 医保编号
MedicareNo string `json:"medicare_no,omitempty" xml:"medicare_no,omitempty"`
// 用药途径编码
DrugUsageCode string `json:"drug_usage_code,omitempty" xml:"drug_usage_code,omitempty"`
// 用药途径
DrugUsage string `json:"drug_usage,omitempty" xml:"drug_usage,omitempty"`
// 频次编码
FrequencyCode string `json:"frequency_code,omitempty" xml:"frequency_code,omitempty"`
// 频次
// 用药数量
Dose string `json:"dose,omitempty" xml:"dose,omitempty"`
// his频次编码
Frequency string `json:"frequency,omitempty" xml:"frequency,omitempty"`
// 药品本位码
DrugBasicCode string `json:"drug_basic_code,omitempty" xml:"drug_basic_code,omitempty"`
// 剂型
DosageForm string `json:"dosage_form,omitempty" xml:"dosage_form,omitempty"`
// 国药准字
ApprovalNumber string `json:"approval_number,omitempty" xml:"approval_number,omitempty"`
// 生产企业
Manufacture string `json:"manufacture,omitempty" xml:"manufacture,omitempty"`
// 处方展示规格
PackSpec string `json:"pack_spec,omitempty" xml:"pack_spec,omitempty"`
// 医院编码
// 用法用量+医嘱
DoseUsageAdvice string `json:"dose_usage_advice,omitempty" xml:"dose_usage_advice,omitempty"`
// 药品厂家
Manufactures string `json:"manufactures,omitempty" xml:"manufactures,omitempty"`
// 规格
Spec string `json:"spec,omitempty" xml:"spec,omitempty"`
// 商品名称
ProdName string `json:"prod_name,omitempty" xml:"prod_name,omitempty"`
// 药品编码
DrugCode string `json:"drug_code,omitempty" xml:"drug_code,omitempty"`
// 药品通用名
DrugCommonName string `json:"drug_common_name,omitempty" xml:"drug_common_name,omitempty"`
// 药品分类码
DrugClassCode string `json:"drug_class_code,omitempty" xml:"drug_class_code,omitempty"`
// 药品数量(必选)
Count string `json:"count,omitempty" xml:"count,omitempty"`
// 核销药品单价
Price string `json:"price,omitempty" xml:"price,omitempty"`
}
58 changes: 52 additions & 6 deletions model/axintrade/AxinFundDTO.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,55 @@
package axintrade

// AxinFundDTO
type AxinFundDTO struct {
// 有效资金单列表
FundList []AxinFundDto `json:"fund_list,omitempty" xml:"fund_list>axin_fund_dto,omitempty"`
// 已支付总金额
TotalPayedAmount int64 `json:"total_payed_amount,omitempty" xml:"total_payed_amount,omitempty"`
// AxinFundDto
type AxinFundDto struct {
// 支付宝交易号
AlipayOrderId string `json:"alipay_order_id,omitempty" xml:"alipay_order_id,omitempty"`
// 支付宝外部商户号
AlipayOuterId string `json:"alipay_outer_id,omitempty" xml:"alipay_outer_id,omitempty"`
// 扩展属性
Attributes string `json:"attributes,omitempty" xml:"attributes,omitempty"`
// 主键
Id int64 `json:"id,omitempty" xml:"id,omitempty"`
// 订单ID
OuterOrderId string `json:"outer_order_id,omitempty" xml:"outer_order_id,omitempty"`
// 付款金额总额
PayFee int64 `json:"pay_fee,omitempty" xml:"pay_fee,omitempty"`
// 正向资金单ID,仅在逆向资金单上使用
PayFundId int64 `json:"pay_fund_id,omitempty" xml:"pay_fund_id,omitempty"`
// 支付订单号(即tp订单号或支付宝流水号)
PayOrderId string `json:"pay_order_id,omitempty" xml:"pay_order_id,omitempty"`
// 付款时间
PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
// 付款方式
PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
// 支付方账号
PayerAccount string `json:"payer_account,omitempty" xml:"payer_account,omitempty"`
// 支付方账号类型
PayerAccountType int64 `json:"payer_account_type,omitempty" xml:"payer_account_type,omitempty"`
// 付款方账号id
PayerAlipayId string `json:"payer_alipay_id,omitempty" xml:"payer_alipay_id,omitempty"`
// 支付方昵称
PayerNick string `json:"payer_nick,omitempty" xml:"payer_nick,omitempty"`
// 支付方淘宝ID
PayerTid int64 `json:"payer_tid,omitempty" xml:"payer_tid,omitempty"`
// 收款方账号
ReceiverAccount string `json:"receiver_account,omitempty" xml:"receiver_account,omitempty"`
// 收款方账号类型
ReceiverAccountType int64 `json:"receiver_account_type,omitempty" xml:"receiver_account_type,omitempty"`
// 收款方账号id
ReceiverAlipayId string `json:"receiver_alipay_id,omitempty" xml:"receiver_alipay_id,omitempty"`
// 收款方昵称
ReceiverNick string `json:"receiver_nick,omitempty" xml:"receiver_nick,omitempty"`
// 收款方淘宝ID
ReceiverTid int64 `json:"receiver_tid,omitempty" xml:"receiver_tid,omitempty"`
// 请求版本号
ReqVersion string `json:"req_version,omitempty" xml:"req_version,omitempty"`
// 二级商户smid
Smid string `json:"smid,omitempty" xml:"smid,omitempty"`
// 资金单状态
Status int64 `json:"status,omitempty" xml:"status,omitempty"`
// 付款来源
TradeSource int64 `json:"trade_source,omitempty" xml:"trade_source,omitempty"`
// 交易方式
TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
}
38 changes: 22 additions & 16 deletions model/drugtrace/CodeRelationDto.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
package drugtrace

// CodeRelationDTO
type CodeRelationDTO struct {
// 追溯码;查询的码
Code string `json:"code,omitempty" xml:"code,omitempty"`
// 父码
ParentCode string `json:"parent_code,omitempty" xml:"parent_code,omitempty"`
// 码级别
CodeLevel string `json:"code_level,omitempty" xml:"code_level,omitempty"`
// 包装级别
CodePackLevel string `json:"code_pack_level,omitempty" xml:"code_pack_level,omitempty"`
// 装箱数量;小盒码,返回1;中包码,返回实际小盒数量;大箱码,返回实际小盒数量
BoxAmount int64 `json:"box_amount,omitempty" xml:"box_amount,omitempty"`
// 大箱或中包状态;若扫描的是小盒码,直接返回正常; 0-正常;1-拼箱;2-零箱;3-即拼箱又零箱
BoxStatus int64 `json:"box_status,omitempty" xml:"box_status,omitempty"`
// 码状态
Status string `json:"status,omitempty" xml:"status,omitempty"`
// CodeRelationDto
type CodeRelationDto struct {
// 激活信息
CodeActiveInfoDto *CodeActiveInfoDto `json:"code_active_info_dto,omitempty" xml:"code_active_info_dto,omitempty"`
// 码关联关系
CodeRelationList []CodeInfo `json:"code_relation_list,omitempty" xml:"code_relation_list>code_info,omitempty"`
// 是否是最小包装
IsSmallest string `json:"is_smallest,omitempty" xml:"is_smallest,omitempty"`
// 药品包装信息
PkgInfoDto *PkgInfoDto `json:"pkg_info_dto,omitempty" xml:"pkg_info_dto,omitempty"`
// 药品基础信息
BaseInfosDto *BaseInfosDto `json:"base_infos_dto,omitempty" xml:"base_infos_dto,omitempty"`
// 生产信息
ProduceInfoList []ProduceInfoDto `json:"produce_info_list,omitempty" xml:"produce_info_list>produce_info_dto,omitempty"`
// 激活信息
CodeActiveInfoDTO *CodeActiveInfoDto `json:"code_active_info_d_t_o,omitempty" xml:"code_active_info_d_t_o,omitempty"`
// 药品包装信息
PkgInfoDTO *PkgInfoDto `json:"pkg_info_d_t_o,omitempty" xml:"pkg_info_d_t_o,omitempty"`
// 药品基础信息
BaseInfosDTO *BaseInfosDto `json:"base_infos_d_t_o,omitempty" xml:"base_infos_d_t_o,omitempty"`
// errorCodeContent
ErrorCodeContent string `json:"error_code_content,omitempty" xml:"error_code_content,omitempty"`
}
14 changes: 8 additions & 6 deletions model/einvoice/BillItemDO.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package einvoice

// BillItemDO
type BillItemDO struct {
// 价税合计
Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
// 商品名称
ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
// BillItemDo
type BillItemDo struct {
// 商品数量
Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
// 价税合计,小数点后2两位
Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
// 规格型号,可选
Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
// 商品单位
Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
// 商品名称
ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
// 1 折扣行 2被折扣行 0普通行
RowType int64 `json:"row_type,omitempty" xml:"row_type,omitempty"`
}
18 changes: 11 additions & 7 deletions model/feedflow/AdgroupDTo.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
package feedflow

// AdgroupDTo
type AdgroupDTo struct {
// 智能出价信息
// AdgroupDto
type AdgroupDto struct {
// 单元名称
AdgroupName string `json:"adgroup_name,omitempty" xml:"adgroup_name,omitempty"`
// 资源类位表
AdzoneList []AdzoneBindDto `json:"adzone_list,omitempty" xml:"adzone_list>adzone_bind_dto,omitempty"`
// 计划id
CampaignId int64 `json:"campaign_id,omitempty" xml:"campaign_id,omitempty"`
// 定向人群
CrowdList []CrowdDto `json:"crowd_list,omitempty" xml:"crowd_list>crowd_dto,omitempty"`
// 智能调价
IntelligentBid *IntelligentBidDto `json:"intelligent_bid,omitempty" xml:"intelligent_bid,omitempty"`
// 商品id
ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
// 单元id
AdgroupId int64 `json:"adgroup_id,omitempty" xml:"adgroup_id,omitempty"`
// 单元名称
AdgroupName string `json:"adgroup_name,omitempty" xml:"adgroup_name,omitempty"`
// 计划ID
CampaignId int64 `json:"campaign_id,omitempty" xml:"campaign_id,omitempty"`
// 状态
Status string `json:"status,omitempty" xml:"status,omitempty"`
}
22 changes: 11 additions & 11 deletions model/feedflow/CampaignDto.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package feedflow

// CampaignDto
type CampaignDto struct {
// CampaignDTo
type CampaignDTo struct {
// 计划id
CampaignId int64 `json:"campaign_id,omitempty" xml:"campaign_id,omitempty"`
// 计划名称
CampaignName string `json:"campaign_name,omitempty" xml:"campaign_name,omitempty"`
// 打折范围
LaunchPeriodList []LaunchPeriodDTO `json:"launch_period_list,omitempty" xml:"launch_period_list>launch_period_dto,omitempty"`
// 日预算金额,单位分
DayBudget int64 `json:"day_budget,omitempty" xml:"day_budget,omitempty"`
// 投放地域
LaunchAreaList []LaunchAreaDto `json:"launch_area_list,omitempty" xml:"launch_area_list>launch_area_dto,omitempty"`
// 投放时间
LaunchTime *LaunchTimeDto `json:"launch_time,omitempty" xml:"launch_time,omitempty"`
// 推广地域
LaunchAreaList []LaunchAreaDTO `json:"launch_area_list,omitempty" xml:"launch_area_list>launch_area_dto,omitempty"`
// 每日预算,单位为分
DayBudget int64 `json:"day_budget,omitempty" xml:"day_budget,omitempty"`
// 计划id
CampaignId int64 `json:"campaign_id,omitempty" xml:"campaign_id,omitempty"`
// PAUSE("投放暂停"),START("投放开始"),ERMINATE("投放停止"),ABNORMAL(投放异常"),WAIT("投放等待中"),DELETE("删除")
// PAUSE("投放暂停"),START("投放开始"), TERMINATE("投放停止"),ABNORMAL(投放异常"),WAIT("投放等待中"),DELETE("删除")
Status string `json:"status,omitempty" xml:"status,omitempty"`
// 折扣时间
LaunchPeriodList []LaunchPeriodDto `json:"launch_period_list,omitempty" xml:"launch_period_list>launch_period_dto,omitempty"`
}
6 changes: 3 additions & 3 deletions model/feedflow/LaunchPeriodDto.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package feedflow

// LaunchPeriodDTO
type LaunchPeriodDTO struct {
// 时间
// LaunchPeriodDto
type LaunchPeriodDto struct {
// 列表
TimeSpanList []TimeSpanDto `json:"time_span_list,omitempty" xml:"time_span_list>time_span_dto,omitempty"`
}
8 changes: 3 additions & 5 deletions model/koubeimall/MallDto.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package koubeimall

// MallDTO
type MallDTO struct {
// MallDto
type MallDto struct {
// 商圈LOGO
MallLogo string `json:"mall_logo,omitempty" xml:"mall_logo,omitempty"`
// 商圈名称
Expand All @@ -12,7 +12,7 @@ type MallDTO struct {
MallCover string `json:"mall_cover,omitempty" xml:"mall_cover,omitempty"`
// 商圈ID
MallId string `json:"mall_id,omitempty" xml:"mall_id,omitempty"`
// 地理位置信息模型
// 地理位置信息
DistrictInfo *DistrictInfo `json:"district_info,omitempty" xml:"district_info,omitempty"`
// 商圈主页小程序URL,根据入参参数display_channel信息,获取对应端小程序URL,默认支付宝小程序链接
MallHomePageUrl string `json:"mall_home_page_url,omitempty" xml:"mall_home_page_url,omitempty"`
Expand All @@ -22,6 +22,4 @@ type MallDTO struct {
CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"`
// 商圈标签,多个标签用英文","分隔符
MallLabel string `json:"mall_label,omitempty" xml:"mall_label,omitempty"`
// 距离
Distance string `json:"distance,omitempty" xml:"distance,omitempty"`
}
Loading

0 comments on commit f9ca7c2

Please sign in to comment.