Merge branch 'master' of e.coding.net:rosydev/baseapi

This commit is contained in:
邹宗楠
2022-11-09 14:35:42 +08:00
2 changed files with 18 additions and 0 deletions

View File

@@ -99,6 +99,11 @@ const (
//模板规则信息
IsDefaultYes = 1 //默认计价方式
IsDefaultNo = 0 //不是默认计价方式
//直辖市名称
MunicipalityBeiJin = "北京市"
MunicipalityShangHai = "上海市"
MunicipalityTianJin = "天津市"
MunicipalityChongQing = "重庆市"
//创建围栏信息
//围栏形状

View File

@@ -302,6 +302,19 @@ func TestGetAns(t *testing.T) {
//运费模板
//创建运费模板
//func TestCreateFreightTemplate(t *testing.T) {
// param := &freightTemplate_create_request.FreightTemplateCreateParam{
// Template: &freightTemplate_create_request.Template{
// TemplateName: "这是一个测试固定运费模板",
// ProductProvince: utils.Str2Int64(utils.Int2Str(storeDetail.ProvinceCode)[:2]),
// ProductCity: int64(storeDetail.CityCode),
// CalculateType: 2, //计价方式-1.按重量 2.按数量
// TransferType: 1,
// RuleType: 1, //固定运费&卖家包邮
// FixedAmount: 500, //固定运费 单位:分
// },
// }
//}
//更新运费模板
func TestUpdateFreightTemplate(t *testing.T) {