Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas3-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas3-fe
Commits
907521c3
Commit
907521c3
authored
Dec 23, 2021
by
guxukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: api迁移
parent
dabc1925
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
1021 additions
and
9 deletions
+1021
-9
Category.ts
src/shared/models/commodity-service/Category.ts
+76
-0
CategoryAttribute.ts
src/shared/models/commodity-service/CategoryAttribute.ts
+86
-0
CategoryAttributeList.ts
src/shared/models/commodity-service/CategoryAttributeList.ts
+20
-0
CategoryAttributePage.ts
src/shared/models/commodity-service/CategoryAttributePage.ts
+22
-0
CategoryList.ts
src/shared/models/commodity-service/CategoryList.ts
+20
-0
CategoryPage.ts
src/shared/models/commodity-service/CategoryPage.ts
+22
-0
CommodityApp.ts
src/shared/models/commodity-service/CommodityApp.ts
+39
-0
CommodityAttribute.ts
src/shared/models/commodity-service/CommodityAttribute.ts
+82
-0
CommodityAttributeCode.ts
...shared/models/commodity-service/CommodityAttributeCode.ts
+34
-0
CommodityAttributeCommodity.ts
...d/models/commodity-service/CommodityAttributeCommodity.ts
+34
-0
CommodityAttributeList.ts
...shared/models/commodity-service/CommodityAttributeList.ts
+21
-0
CommodityAttributePage.ts
...shared/models/commodity-service/CommodityAttributePage.ts
+25
-0
CommodityPriceConfig.ts
src/shared/models/commodity-service/CommodityPriceConfig.ts
+74
-0
CommodityPriceConfigBatch.ts
...red/models/commodity-service/CommodityPriceConfigBatch.ts
+21
-0
CommodityPriceConfigList.ts
...ared/models/commodity-service/CommodityPriceConfigList.ts
+23
-0
CommodityPriceConfigPage.ts
...ared/models/commodity-service/CommodityPriceConfigPage.ts
+25
-0
Price.ts
src/shared/models/commodity-service/Price.ts
+91
-0
PriceCommodity.ts
src/shared/models/commodity-service/PriceCommodity.ts
+54
-0
PriceDifference.ts
src/shared/models/commodity-service/PriceDifference.ts
+19
-0
PriceList.ts
src/shared/models/commodity-service/PriceList.ts
+20
-0
PriceLog.ts
src/shared/models/commodity-service/PriceLog.ts
+27
-0
PriceLogPage.ts
src/shared/models/commodity-service/PriceLogPage.ts
+22
-0
PricePage.ts
src/shared/models/commodity-service/PricePage.ts
+22
-0
Relation.ts
src/shared/models/commodity-service/Relation.ts
+74
-0
RelationList.ts
src/shared/models/commodity-service/RelationList.ts
+20
-0
RelationPage.ts
src/shared/models/commodity-service/RelationPage.ts
+22
-0
TODO.md
src/shared/models/commodity-service/TODO.md
+10
-9
PricePayTypeEnum.ts
...shared/models/commodity-service/enums/PricePayTypeEnum.ts
+6
-0
PricePriceTypeEnum.ts
...ared/models/commodity-service/enums/PricePriceTypeEnum.ts
+6
-0
PricePriceUnitEnum.ts
...ared/models/commodity-service/enums/PricePriceUnitEnum.ts
+4
-0
No files found.
src/shared/models/commodity-service/Category.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
Category
extends
Model
<
Category
>
{
//商品分类ID
@
JsonProperty
()
categoryId
:
number
//分类Code
@
JsonProperty
()
code
:
string
//分类说明
@
JsonProperty
()
description
:
string
//分类名称
@
JsonProperty
()
name
:
string
//父ID
@
JsonProperty
()
parentId
:
number
//创建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//创建用户名称
@
JsonProperty
()
createUserName
:
string
//逻辑删除
@
JsonProperty
()
deleted
:
number
@
JsonProperty
()
id
:
number
//更新时间
@
JsonProperty
()
updateTime
:
number
//更新用户ID
@
JsonProperty
()
updateUserId
:
string
//更新用户名称
@
JsonProperty
()
updateUserName
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
CategoryPostReq
)
{
return
await
api
.
post
(
'/services/commodity-service/category'
,
{
data
:
payload
,
})
}
/**
* 查询
* @param payload
*/
static
async
get
(
payload
:
CategoryGetReq
)
{
return
await
api
.
get
(
`/services/commodity-service/category/
${
payload
.
id
}
`
)
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
CategoryPutReq
)
{
return
await
api
.
put
(
`/services/commodity-service/category`
,
{
data
:
payload
,
})
}
/**
* 删除
* @param payload
*/
static
async
delete
(
payload
:
CategoryGetReq
)
{
return
await
api
.
delete
(
`/services/commodity-service/category/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
CategoryPostReq
extends
Category
{}
@
Serializable
()
export
class
CategoryPutReq
extends
Category
{}
@
Serializable
()
export
class
CategoryGetReq
extends
Model
<
CategoryGetReq
>
{
@
JsonProperty
()
id
:
number
}
@
Serializable
()
export
class
CategoryDeleteReq
extends
Model
<
CategoryDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/commodity-service/CategoryAttribute.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
CategoryAttribute
extends
Model
<
CategoryAttribute
>
{
//商品分类属性CODE,用来检索别处定义的列表,比如自定义套餐,除特殊指定外,检索字典表
@
JsonProperty
()
attributeCode
:
string
//商品属性ID
@
JsonProperty
()
attributeId
:
number
//商品分类属性标志,比如name等
@
JsonProperty
()
attributeMark
:
string
//商品分类属性名称
@
JsonProperty
()
attributeName
:
string
//商品分类属性类型,比如INPUT,SELECT,CHECKBOX,LIST
@
JsonProperty
()
attributeType
:
string
//商品分类ID
@
JsonProperty
()
categoryId
:
number
//依赖ID,根据某个属性的值,展示不同的值
@
JsonProperty
()
dependencyId
:
number
//是否是指定服务时长
@
JsonProperty
()
duration
:
boolean
//父ID
@
JsonProperty
()
parentId
:
number
//是否SKU指标
@
JsonProperty
()
sku
:
boolean
//创建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//创建用户名称
@
JsonProperty
()
createUserName
:
string
//逻辑删除
@
JsonProperty
()
deleted
:
number
@
JsonProperty
()
id
:
number
//更新时间
@
JsonProperty
()
updateTime
:
number
//更新用户ID
@
JsonProperty
()
updateUserId
:
string
//更新用户名称
@
JsonProperty
()
updateUserName
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
CategoryAttributePostReq
)
{
return
await
api
.
post
(
'/services/commodity-service/category/attribute'
,
{
data
:
payload
,
})
}
/**
* 查询
* @param payload
*/
static
async
get
(
payload
:
CategoryAttributeGetReq
)
{
return
await
api
.
get
(
`/services/commodity-service/category/attribute/
${
payload
.
id
}
`
)
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
CategoryAttributePutReq
)
{
return
await
api
.
put
(
`/services/commodity-service/category/attribute`
,
{
data
:
payload
,
})
}
/**
* 删除
* @param payload
*/
static
async
delete
(
payload
:
CategoryAttributeGetReq
)
{
return
await
api
.
delete
(
`/services/commodity-service/category/attribute/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
CategoryAttributePostReq
extends
CategoryAttribute
{}
@
Serializable
()
export
class
CategoryAttributePutReq
extends
CategoryAttribute
{}
@
Serializable
()
export
class
CategoryAttributeGetReq
extends
Model
<
CategoryAttributeGetReq
>
{
@
JsonProperty
()
id
:
number
}
@
Serializable
()
export
class
CategoryAttributeDeleteReq
extends
Model
<
CategoryAttributeDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/commodity-service/CategoryAttributeList.ts
0 → 100644
View file @
907521c3
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Model
}
from
'@shared/models/Model'
import
{
CategoryAttribute
}
from
'@shared/models/commodity-service/CategoryAttribute'
@
Serializable
()
export
class
CategoryAttributeList
extends
Model
<
CategoryAttributeList
>
{
/**
* 列表
*/
static
async
post
(
payload
:
CategoryAttributeListPostReq
)
{
return
await
api
.
post
<
HttpResponse
<
CategoryAttribute
[]
>>
(
'/services/commodity-service/category/attribute/list'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
CategoryAttributeListPostReq
extends
PaginationParams
<
CategoryAttributeListPostReq
>
{}
src/shared/models/commodity-service/CategoryAttributePage.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
CategoryAttribute
}
from
'@shared/models/commodity-service/CategoryAttribute'
@
Serializable
()
export
class
CategoryAttributePage
extends
Pagination
<
CategoryAttribute
>
{
@
JsonProperty
({
type
:
CategoryAttribute
})
data
:
CategoryAttribute
[]
/**
* 分页
* @param payload
*/
static
async
post
(
payload
:
CategoryAttributePagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
CategoryAttributePage
>>
(
'/services/commodity-service/category/attribute/page'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
CategoryAttributePagePostReq
extends
PaginationParams
<
CategoryAttributePagePostReq
>
{}
src/shared/models/commodity-service/CategoryList.ts
0 → 100644
View file @
907521c3
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Model
}
from
'@shared/models/Model'
import
{
Category
}
from
'@shared/models/commodity-service/Category'
@
Serializable
()
export
class
CategoryList
extends
Model
<
CategoryList
>
{
/**
* 列表
*/
static
async
post
(
payload
:
CategoryListPostReq
)
{
return
await
api
.
post
<
HttpResponse
<
Category
[]
>>
(
'/services/commodity-service/category/list'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
CategoryListPostReq
extends
PaginationParams
<
CategoryListPostReq
>
{}
src/shared/models/commodity-service/CategoryPage.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Category
}
from
'@shared/models/commodity-service/Category'
@
Serializable
()
export
class
CategoryPage
extends
Pagination
<
Category
>
{
@
JsonProperty
({
type
:
Category
})
data
:
Category
[]
/**
* 分页
* @param payload
*/
static
async
post
(
payload
:
CategoryPagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
CategoryPage
>>
(
'/services/commodity-service/category/page'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
CategoryPagePostReq
extends
PaginationParams
<
CategoryPagePostReq
>
{}
src/shared/models/commodity-service/CommodityApp.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
CommodityApp
extends
Model
<
CommodityApp
>
{
//应用类别
@
JsonProperty
()
category
:
number
//代码类型
@
JsonProperty
()
codeType
:
string
//应用描述
@
JsonProperty
()
content
:
string
//应用类型
@
JsonProperty
()
contractType
:
number
//应用ID
@
JsonProperty
()
id
:
number
//应用名
@
JsonProperty
()
name
:
string
//所属ID
@
JsonProperty
()
owner
:
string
//应用价格
@
JsonProperty
()
price
:
number
//发布时间
@
JsonProperty
()
publishTime
:
number
//用户ID
@
JsonProperty
()
uid
:
number
//版本号
@
JsonProperty
()
version
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
CommodityAppPostReq
)
{
return
await
api
.
post
(
'/services/commodity-service/commodity/app'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
CommodityAppPostReq
extends
CommodityApp
{}
src/shared/models/commodity-service/CommodityAttribute.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
CommodityAttribute
extends
Model
<
CommodityAttribute
>
{
//商品属性ID
@
JsonProperty
()
attributeId
:
number
//商品属性展示值
@
JsonProperty
()
attributeLabel
:
string
//商品属性值
@
JsonProperty
()
attributeValue
:
string
//商品属性配置ID
@
JsonProperty
()
commodityAttributeId
:
number
//商品ID
@
JsonProperty
()
commodityId
:
number
//依赖VALUE,根据某个属性的值,展示不同的值
@
JsonProperty
()
dependencyValue
:
string
//是否隐藏
@
JsonProperty
()
hide
:
boolean
// 排序
@
JsonProperty
()
sort
:
number
//创建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//创建用户名称
@
JsonProperty
()
createUserName
:
string
//逻辑删除
@
JsonProperty
()
deleted
:
number
@
JsonProperty
()
id
:
number
//更新时间
@
JsonProperty
()
updateTime
:
number
//更新用户ID
@
JsonProperty
()
updateUserId
:
string
//更新用户名称
@
JsonProperty
()
updateUserName
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
CommodityAttributePostReq
)
{
return
await
api
.
post
(
'/services/commodity-service/commodity/attribute'
,
{
data
:
payload
,
})
}
/**
* 查询
* @param payload
*/
static
async
get
(
payload
:
CommodityAttributeGetReq
)
{
return
await
api
.
get
(
`/services/commodity-service/commodity/attribute/
${
payload
.
id
}
`
)
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
CommodityAttributePutReq
)
{
return
await
api
.
put
(
`/services/commodity-service/commodity/attribute`
,
{
data
:
payload
,
})
}
/**
* 删除
* @param payload
*/
static
async
delete
(
payload
:
CommodityAttributeGetReq
)
{
return
await
api
.
delete
(
`/services/commodity-service/commodity/attribute/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
CommodityAttributePostReq
extends
CommodityAttribute
{}
@
Serializable
()
export
class
CommodityAttributePutReq
extends
CommodityAttribute
{}
@
Serializable
()
export
class
CommodityAttributeGetReq
extends
Model
<
CommodityAttributeGetReq
>
{
@
JsonProperty
()
id
:
number
}
@
Serializable
()
export
class
CommodityAttributeDeleteReq
extends
Model
<
CommodityAttributeDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/commodity-service/CommodityAttributeCode.ts
0 → 100644
View file @
907521c3
import
{
Model
}
from
'@shared/models/Model'
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
CommodityAttribute
}
from
'@shared/models/commodity-service/CommodityAttribute'
import
{
CategoryAttribute
}
from
'@shared/models/commodity-service/CategoryAttribute'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
@
Serializable
()
export
class
CommodityAttributeCode
extends
Model
<
CommodityAttributeCode
>
{
//商品属性信息
@
JsonProperty
()
attributes
:
{
[
key
:
string
]:
CategoryAttribute
&
{
disValue
:
CommodityAttribute
[]
}
}
//商品分类Code
@
JsonProperty
()
categoryCode
:
string
//商品分类ID
@
JsonProperty
()
categoryId
:
number
//商品Code
@
JsonProperty
()
commodityCode
:
string
//商品ID
@
JsonProperty
()
commodityId
:
number
//商品名称
@
JsonProperty
()
name
:
string
//商品拥有者
@
JsonProperty
()
ownerUser
:
string
static
async
get
(
payload
:
CommodityAttributeCodeGetReq
)
{
return
await
api
.
get
<
HttpResponse
<
CommodityAttributeCode
>>
(
`/services/commodity-service/commodity/attribute/code/
${
payload
.
code
}
`
,
)
}
}
export
class
CommodityAttributeCodeGetReq
extends
Model
<
CommodityAttributeCodeGetReq
>
{
//商品CODE
@
JsonProperty
()
code
:
number
}
src/shared/models/commodity-service/CommodityAttributeCommodity.ts
0 → 100644
View file @
907521c3
import
{
Model
}
from
'@shared/models/Model'
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
CommodityAttribute
}
from
'@shared/models/commodity-service/CommodityAttribute'
import
{
CategoryAttribute
}
from
'@shared/models/commodity-service/CategoryAttribute'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
@
Serializable
()
export
class
CommodityAttributeCommodity
extends
Model
<
CommodityAttributeCommodity
>
{
//商品属性信息
@
JsonProperty
()
attributes
:
{
[
key
:
string
]:
CategoryAttribute
&
{
disValue
:
CommodityAttribute
[]
}
}
//商品分类Code
@
JsonProperty
()
categoryCode
:
string
//商品分类ID
@
JsonProperty
()
categoryId
:
number
//商品Code
@
JsonProperty
()
commodityCode
:
string
//商品ID
@
JsonProperty
()
commodityId
:
number
//商品名称
@
JsonProperty
()
name
:
string
//商品拥有者
@
JsonProperty
()
ownerUser
:
string
static
async
get
(
payload
:
CommodityAttributeCommodityGetReq
)
{
return
await
api
.
get
<
HttpResponse
<
CommodityAttributeCommodity
>>
(
`/services/commodity-service/commodity/attribute/commodity/
${
payload
.
commodityId
}
`
,
)
}
}
export
class
CommodityAttributeCommodityGetReq
extends
Model
<
CommodityAttributeCommodityGetReq
>
{
//商品ID
@
JsonProperty
()
commodityId
:
number
}
src/shared/models/commodity-service/CommodityAttributeList.ts
0 → 100644
View file @
907521c3
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Model
}
from
'@shared/models/Model'
import
{
CategoryAttribute
}
from
'@shared/models/commodity-service/CategoryAttribute'
import
{
CommodityAttribute
}
from
'@shared/models/commodity-service/CommodityAttribute'
@
Serializable
()
export
class
CommodityAttributeList
extends
Model
<
CommodityAttributeList
>
{
/**
* 列表
*/
static
async
post
(
payload
:
CommodityAttributeListPostReq
)
{
return
await
api
.
post
<
HttpResponse
<
CommodityAttribute
[]
>>
(
'/services/commodity-service/commodity/attribute/list'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
CommodityAttributeListPostReq
extends
PaginationParams
<
CommodityAttributeListPostReq
>
{}
src/shared/models/commodity-service/CommodityAttributePage.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
CommodityAttribute
}
from
'@shared/models/commodity-service/CommodityAttribute'
@
Serializable
()
export
class
CommodityAttributePage
extends
Pagination
<
CommodityAttribute
>
{
@
JsonProperty
({
type
:
CommodityAttribute
})
data
:
CommodityAttribute
[]
/**
* 分页
* @param payload
*/
static
async
post
(
payload
:
CommodityAttributePagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
CommodityAttributePage
>>
(
'/services/commodity-service/commodity/attribute/page'
,
{
data
:
payload
,
},
)
}
}
@
Serializable
()
export
class
CommodityAttributePagePostReq
extends
PaginationParams
<
CommodityAttributePagePostReq
>
{}
src/shared/models/commodity-service/CommodityPriceConfig.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
CommodityPriceConfig
extends
Model
<
CommodityPriceConfig
>
{
//商品属性配置ID
@
JsonProperty
()
commodityAttributeId
:
number
//商品ID
@
JsonProperty
()
commodityId
:
number
//商品价格配置ID
@
JsonProperty
()
priceConfigId
:
number
//商品价格ID
@
JsonProperty
()
priceId
:
number
//创建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//创建用户名称
@
JsonProperty
()
createUserName
:
string
//逻辑删除
@
JsonProperty
()
deleted
:
number
@
JsonProperty
()
id
:
number
//更新时间
@
JsonProperty
()
updateTime
:
number
//更新用户ID
@
JsonProperty
()
updateUserId
:
string
//更新用户名称
@
JsonProperty
()
updateUserName
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
CommodityPriceConfigPostReq
)
{
return
await
api
.
post
(
'/services/commodity-service/commodity/price/config'
,
{
data
:
payload
,
})
}
/**
* 查询
* @param payload
*/
static
async
get
(
payload
:
CommodityPriceConfigGetReq
)
{
return
await
api
.
get
(
`/services/commodity-service/commodity/price/config/
${
payload
.
id
}
`
)
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
CommodityPriceConfigPutReq
)
{
return
await
api
.
put
(
`/services/commodity-service/commodity/price/config`
,
{
data
:
payload
,
})
}
/**
* 删除
* @param payload
*/
static
async
delete
(
payload
:
CommodityPriceConfigGetReq
)
{
return
await
api
.
delete
(
`/services/commodity-service/commodity/price/config/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
CommodityPriceConfigPostReq
extends
CommodityPriceConfig
{}
@
Serializable
()
export
class
CommodityPriceConfigPutReq
extends
CommodityPriceConfig
{}
@
Serializable
()
export
class
CommodityPriceConfigGetReq
extends
Model
<
CommodityPriceConfigGetReq
>
{
@
JsonProperty
()
id
:
number
}
@
Serializable
()
export
class
CommodityPriceConfigDeleteReq
extends
Model
<
CommodityPriceConfigDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/commodity-service/CommodityPriceConfigBatch.ts
0 → 100644
View file @
907521c3
import
{
Model
}
from
'@shared/models/Model'
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
@
Serializable
()
export
class
CommodityPriceConfigBatch
extends
Model
<
CommodityPriceConfigBatch
>
{
static
async
post
(
payload
:
CommodityPriceConfigBatchPostReq
)
{
return
await
api
.
post
<
HttpResponse
<
boolean
>>
(
'/services/commodity-service/commodity/price/config/batch'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
CommodityPriceConfigBatchPostReq
extends
Model
<
CommodityPriceConfigBatchPostReq
>
{
//商品属性配置ID
@
JsonProperty
()
commodityAttributeIds
:
number
[]
//商品ID
@
JsonProperty
()
commodityId
:
number
//商品价格ID
@
JsonProperty
()
priceId
:
number
}
src/shared/models/commodity-service/CommodityPriceConfigList.ts
0 → 100644
View file @
907521c3
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Model
}
from
'@shared/models/Model'
import
{
CommodityPriceConfig
}
from
'@shared/models/commodity-service/CommodityPriceConfig'
@
Serializable
()
export
class
CommodityPriceConfigList
extends
Model
<
CommodityPriceConfigList
>
{
/**
* 列表
*/
static
async
post
(
payload
:
CommodityPriceConfigListPostReq
)
{
return
await
api
.
post
<
HttpResponse
<
CommodityPriceConfig
[]
>>
(
'/services/commodity-service/commodity/price/config/list'
,
{
data
:
payload
,
},
)
}
}
@
Serializable
()
export
class
CommodityPriceConfigListPostReq
extends
PaginationParams
<
CommodityPriceConfigListPostReq
>
{}
src/shared/models/commodity-service/CommodityPriceConfigPage.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
CommodityPriceConfig
}
from
'@shared/models/commodity-service/CommodityPriceConfig'
@
Serializable
()
export
class
CommodityPriceConfigPage
extends
Pagination
<
CommodityPriceConfig
>
{
@
JsonProperty
({
type
:
CommodityPriceConfig
})
data
:
CommodityPriceConfig
[]
/**
* 分页
* @param payload
*/
static
async
post
(
payload
:
CommodityPriceConfigPagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
CommodityPriceConfigPage
>>
(
'/services/commodity-service/commodity/price/config/page'
,
{
data
:
payload
,
},
)
}
}
@
Serializable
()
export
class
CommodityPriceConfigPagePostReq
extends
PaginationParams
<
CommodityPriceConfigPagePostReq
>
{}
src/shared/models/commodity-service/Price.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
import
{
PricePayTypeEnum
}
from
'@shared/models/commodity-service/enums/PricePayTypeEnum'
import
{
PricePriceTypeEnum
}
from
'@shared/models/commodity-service/enums/PricePriceTypeEnum'
import
{
PricePriceUnitEnum
}
from
'@shared/models/commodity-service/enums/PricePriceUnitEnum'
@
Serializable
()
export
class
Price
extends
Model
<
Price
>
{
//是否基础费用(一次性收取)
@
JsonProperty
()
basic
:
boolean
//费用计算对象
@
JsonProperty
()
calcObject
:
string
//商品ID
@
JsonProperty
()
commodityId
:
number
//是否关闭
@
JsonProperty
()
disable
:
boolean
//包含的商品数量
@
JsonProperty
()
includedQuantity
:
number
//支付类型
@
JsonProperty
()
payType
:
PricePayTypeEnum
//商品价格
@
JsonProperty
()
price
:
number
//商品价格ID
@
JsonProperty
()
priceId
:
number
//商品价格名称
@
JsonProperty
()
priceName
:
string
//商品价格类型
@
JsonProperty
()
priceType
:
PricePriceTypeEnum
//价格单位
@
JsonProperty
()
priceUnit
:
PricePriceUnitEnum
//创建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//创建用户名称
@
JsonProperty
()
createUserName
:
string
//逻辑删除
@
JsonProperty
()
deleted
:
number
@
JsonProperty
()
id
:
number
//更新时间
@
JsonProperty
()
updateTime
:
number
//更新用户ID
@
JsonProperty
()
updateUserId
:
string
//更新用户名称
@
JsonProperty
()
updateUserName
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
PricePostReq
)
{
return
await
api
.
post
(
'/services/commodity-service/category/attribute'
,
{
data
:
payload
,
})
}
/**
* 查询
* @param payload
*/
static
async
get
(
payload
:
PriceGetReq
)
{
return
await
api
.
get
(
`/services/commodity-service/category/attribute/
${
payload
.
id
}
`
)
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
PricePutReq
)
{
return
await
api
.
put
(
`/services/commodity-service/category/attribute`
,
{
data
:
payload
,
})
}
/**
* 删除
* @param payload
*/
static
async
delete
(
payload
:
PriceGetReq
)
{
return
await
api
.
delete
(
`/services/commodity-service/category/attribute/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
PricePostReq
extends
Price
{}
@
Serializable
()
export
class
PricePutReq
extends
Price
{}
@
Serializable
()
export
class
PriceGetReq
extends
Model
<
PriceGetReq
>
{
@
JsonProperty
()
id
:
number
}
@
Serializable
()
export
class
PriceDeleteReq
extends
Model
<
PriceDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/commodity-service/PriceCommodity.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Model
}
from
'@shared/models/Model'
import
{
CommodityPriceConfig
}
from
'@shared/models/commodity-service/CommodityPriceConfig'
import
{
PricePayTypeEnum
}
from
'@shared/models/commodity-service/enums/PricePayTypeEnum'
import
{
PricePriceTypeEnum
}
from
'@shared/models/commodity-service/enums/PricePriceTypeEnum'
import
{
PricePriceUnitEnum
}
from
'@shared/models/commodity-service/enums/PricePriceUnitEnum'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
@
Serializable
()
export
class
PriceCommodity
extends
Model
<
PriceCommodity
>
{
//是否基础费用
@
JsonProperty
()
basic
:
boolean
//费用计算对象
@
JsonProperty
()
calcObject
:
string
//商品ID
@
JsonProperty
()
commodityId
:
number
//是否关闭
@
JsonProperty
()
disable
:
boolean
//包含的商品数量
@
JsonProperty
()
includedQuantity
:
number
//商品原价格
@
JsonProperty
()
originalPrice
:
number
//支付类型
@
JsonProperty
()
payType
:
PricePayTypeEnum
//商品价格
@
JsonProperty
()
price
:
number
//价格配置信息
@
JsonProperty
({
type
:
CommodityPriceConfig
,
})
priceConfigModelList
:
CommodityPriceConfig
[]
//商品价格ID
@
JsonProperty
()
priceId
:
number
//商品价格名称
@
JsonProperty
()
priceName
:
number
//商品价格类型
@
JsonProperty
()
priceType
:
PricePriceTypeEnum
//价格单位
@
JsonProperty
()
priceUnit
:
PricePriceUnitEnum
//依赖费用计算对象
@
JsonProperty
()
relyCalcObject
:
string
static
async
get
(
payload
:
PriceCommodityGetReq
)
{
return
await
api
.
get
<
HttpResponse
<
PriceCommodity
[]
>>
(
`/services/commodity-service/price/commodity/
${
payload
.
commodityId
}
`
,
)
}
}
@
Serializable
()
export
class
PriceCommodityGetReq
extends
Model
<
PriceCommodityGetReq
>
{
//商品ID
@
JsonProperty
()
commodityId
:
number
}
src/shared/models/commodity-service/PriceDifference.ts
0 → 100644
View file @
907521c3
import
{
Model
}
from
'@shared/models/Model'
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
@
Serializable
()
export
class
PriceDifference
extends
Model
<
PriceDifference
>
{
static
async
get
(
payload
:
PriceDifferenceGetReq
)
{
return
await
api
.
get
<
HttpResponse
<
number
>>
(
'/services/commodity-service/price/difference'
,
{
params
:
payload
,
})
}
}
@
Serializable
()
export
class
PriceDifferenceGetReq
extends
Model
<
PriceDifferenceGetReq
>
{
@
JsonProperty
()
durationVal
:
string
@
JsonProperty
()
expireTime
:
number
@
JsonProperty
()
newPrice
:
number
@
JsonProperty
()
oldPrice
:
number
}
src/shared/models/commodity-service/PriceList.ts
0 → 100644
View file @
907521c3
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Model
}
from
'@shared/models/Model'
import
{
Price
}
from
'@shared/models/commodity-service/Price'
@
Serializable
()
export
class
PriceList
extends
Model
<
PriceList
>
{
/**
* 列表
*/
static
async
post
(
payload
:
PriceListPostReq
)
{
return
await
api
.
post
<
HttpResponse
<
Price
[]
>>
(
'/services/commodity-service/price/list'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
PriceListPostReq
extends
PaginationParams
<
PriceListPostReq
>
{}
src/shared/models/commodity-service/PriceLog.ts
0 → 100644
View file @
907521c3
import
{
Model
}
from
'@shared/models/Model'
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
@
Serializable
()
export
class
PriceLog
extends
Model
<
PriceLog
>
{
//操作内容
@
JsonProperty
()
content
:
string
//价格关键字
@
JsonProperty
()
priceKey
:
string
//操作类型
@
JsonProperty
()
type
:
string
//创建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//创建用户名称
@
JsonProperty
()
createUserName
:
string
//逻辑删除
@
JsonProperty
()
deleted
:
number
@
JsonProperty
()
id
:
number
//更新时间
@
JsonProperty
()
updateTime
:
number
//更新用户ID
@
JsonProperty
()
updateUserId
:
string
//更新用户名称
@
JsonProperty
()
updateUserName
:
string
}
src/shared/models/commodity-service/PriceLogPage.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
PriceLog
}
from
'@shared/models/commodity-service/PriceLog'
@
Serializable
()
export
class
PriceLogPage
extends
Pagination
<
PriceLog
>
{
@
JsonProperty
({
type
:
PriceLog
})
data
:
PriceLog
[]
/**
* 分页
* @param payload
*/
static
async
post
(
payload
:
PriceLogPagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
PriceLogPage
>>
(
'/services/commodity-service/price/log/page'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
PriceLogPagePostReq
extends
PaginationParams
<
PriceLogPagePostReq
>
{}
src/shared/models/commodity-service/PricePage.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Price
}
from
'@shared/models/commodity-service/Price'
@
Serializable
()
export
class
PricePage
extends
Pagination
<
Price
>
{
@
JsonProperty
({
type
:
Price
})
data
:
Price
[]
/**
* 分页
* @param payload
*/
static
async
post
(
payload
:
PricePagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
PricePage
>>
(
'/services/commodity-service/price/page'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
PricePagePostReq
extends
PaginationParams
<
PricePagePostReq
>
{}
src/shared/models/commodity-service/Relation.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
Relation
extends
Model
<
Relation
>
{
//计算对象ID
@
JsonProperty
()
calcObject
:
string
//商品ID
@
JsonProperty
()
commodityId
:
number
//关联商品ID
@
JsonProperty
()
relateCommodityId
:
number
//商品关联ID
@
JsonProperty
()
relationId
:
number
//创建时间
@
JsonProperty
()
createTime
:
number
//创建用户ID
@
JsonProperty
()
createUserId
:
string
//创建用户名称
@
JsonProperty
()
createUserName
:
string
//逻辑删除
@
JsonProperty
()
deleted
:
number
@
JsonProperty
()
id
:
number
//更新时间
@
JsonProperty
()
updateTime
:
number
//更新用户ID
@
JsonProperty
()
updateUserId
:
string
//更新用户名称
@
JsonProperty
()
updateUserName
:
string
/**
* 新增
* @param payload
*/
static
async
post
(
payload
:
RelationPostReq
)
{
return
await
api
.
post
(
'/services/commodity-service/relation'
,
{
data
:
payload
,
})
}
/**
* 查询
* @param payload
*/
static
async
get
(
payload
:
RelationGetReq
)
{
return
await
api
.
get
(
`/services/commodity-service/relation/
${
payload
.
id
}
`
)
}
/**
* 修改
* @param payload
*/
static
async
put
(
payload
:
RelationPutReq
)
{
return
await
api
.
put
(
`/services/commodity-service/relation`
,
{
data
:
payload
,
})
}
/**
* 删除
* @param payload
*/
static
async
delete
(
payload
:
RelationGetReq
)
{
return
await
api
.
delete
(
`/services/commodity-service/relation/
${
payload
.
id
}
`
)
}
}
@
Serializable
()
export
class
RelationPostReq
extends
Relation
{}
@
Serializable
()
export
class
RelationPutReq
extends
Relation
{}
@
Serializable
()
export
class
RelationGetReq
extends
Model
<
RelationGetReq
>
{
@
JsonProperty
()
id
:
number
}
@
Serializable
()
export
class
RelationDeleteReq
extends
Model
<
RelationDeleteReq
>
{
@
JsonProperty
()
id
:
number
}
src/shared/models/commodity-service/RelationList.ts
0 → 100644
View file @
907521c3
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Model
}
from
'@shared/models/Model'
import
{
Relation
}
from
'@shared/models/commodity-service/Relation'
@
Serializable
()
export
class
RelationList
extends
Model
<
RelationList
>
{
/**
* 列表
*/
static
async
post
(
payload
:
RelationListPostReq
)
{
return
await
api
.
post
<
HttpResponse
<
Relation
[]
>>
(
'/services/commodity-service/relation/list'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
RelationListPostReq
extends
PaginationParams
<
RelationListPostReq
>
{}
src/shared/models/commodity-service/RelationPage.ts
0 → 100644
View file @
907521c3
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
Pagination
}
from
'@shared/models/Pagination'
import
{
api
}
from
'@shared/http/axios'
import
{
HttpResponse
}
from
'@shared/http/HttpResponse'
import
{
PaginationParams
}
from
'@shared/models/PaginationParams'
import
{
Relation
}
from
'@shared/models/commodity-service/Relation'
@
Serializable
()
export
class
RelationPage
extends
Pagination
<
Relation
>
{
@
JsonProperty
({
type
:
Relation
})
data
:
Relation
[]
/**
* 分页
* @param payload
*/
static
async
post
(
payload
:
RelationPagePostReq
)
{
return
await
api
.
post
<
HttpResponse
<
RelationPage
>>
(
'/services/commodity-service/relation/page'
,
{
data
:
payload
,
})
}
}
@
Serializable
()
export
class
RelationPagePostReq
extends
PaginationParams
<
RelationPagePostReq
>
{}
src/shared/models/commodity-service/TODO.md
View file @
907521c3
-
[
]
云服务商品
-
[
]
云服务商品
-
[
]
商品价格日志
-
[
x
]
商品价格日志
-
[
]
商品价格
-
[
x
]
商品价格
-
[
]
商品价格调整
-
[
x
]
商品价格调整
-
[
]
商品价格配置
-
[
x
]
商品价格配置
-
[
]
商品关联表
-
[
x
]
商品关联表
-
[
]
商品分类属性
-
[
x
]
商品分类属性
-
[
]
商品分类
-
[
x
]
商品分类
-
[
]
商品
-
[
x
]
商品属性
-
[
]
应用商品
-
[
x
]
商品
-
[
x
]
应用商品
-
[
]
链相关商品价格
-
[
]
链相关商品价格
src/shared/models/commodity-service/enums/PricePayTypeEnum.ts
0 → 100644
View file @
907521c3
export
enum
PricePayTypeEnum
{
//后付费
POSTPAID
=
'POSTPAID'
,
//预付费
PREPAID
=
'PREPAID'
,
}
src/shared/models/commodity-service/enums/PricePriceTypeEnum.ts
0 → 100644
View file @
907521c3
export
enum
PricePriceTypeEnum
{
//商品价格
BASE
=
'BASE'
,
//配置费
CONFIG
=
'CONFIG'
,
}
src/shared/models/commodity-service/enums/PricePriceUnitEnum.ts
0 → 100644
View file @
907521c3
export
enum
PricePriceUnitEnum
{
CNY
=
'CNY'
,
USD
=
'USD'
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment