Skip to content

Commit

Permalink
Merge pull request #285 from ArtisanCloud/dev/michaelhu
Browse files Browse the repository at this point in the history
Dev/michaelhu
  • Loading branch information
Matrix-X authored Sep 6, 2024
2 parents 1b40481 + 3336b98 commit be5588b
Show file tree
Hide file tree
Showing 63 changed files with 5,287 additions and 3,925 deletions.
392 changes: 392 additions & 0 deletions api.csv

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions api/admin.crm.api
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ import "admin/crm/product/product.api"
import "admin/crm/product/artisan.api"
import "admin/crm/trade/tokenproduct.api"
import "admin/crm/trade/shippingaddress.api"
import "admin/crm/trade/billingaddress.api"
import "admin/crm/trade/deliveryaddress.api"
import "admin/crm/trade/warehouse.api"
//import "admin/crm/trade/billingaddress.api"
//import "admin/crm/trade/deliveryaddress.api"
//import "admin/crm/trade/warehouse.api"
4 changes: 2 additions & 2 deletions api/admin/crm/business/opportunity.api
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ syntax = "v1"
info(
title: "商机管理"
desc: "商机管理"
author: "YourName"
email: "yourEmail@example.com"
author: "Matrix-X"
email: "matrix-x@artisan-cloud.com"
version: "v1"
)

Expand Down
2 changes: 1 addition & 1 deletion api/admin/crm/product/product.api
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ type (
ProductId int64 `path:"id"`
}

DisableProductReply struct{
DisableProductReply{
ProductId int64 `json:"id"`
}

Expand Down
12 changes: 6 additions & 6 deletions api/admin/crm/trade/billingaddress.api
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ info(
)

service PowerX {
@doc("查询账单地址列表")
@doc "查询账单地址列表"
@handler ListBillingAddressesPage
get /billing/page-list (ListBillingAddressesPageRequest) returns (ListBillingAddressesPageReply)

@doc("查询账单地址详情")
@doc "查询账单地址详情"
@handler GetBillingAddress
get /billing/:id (GetBillingAddressRequest) returns (GetBillingAddressReply)

@doc("创建账单地址")
@doc "创建账单地址"
@handler CreateBillingAddress
post /billing (CreateBillingAddressRequest) returns (CreateBillingAddressReply)

@doc("更新账单地址")
@doc "更新账单地址"
@handler PutBillingAddress
put /billing/:id (PutBillingAddressRequest) returns (PutBillingAddressReply)

@doc("部分更新账单地址")
@doc "部分更新账单地址"
@handler PatchBillingAddress
patch /billing/:id (PatchBillingAddressRequest) returns (PatchBillingAddressReply)

@doc("删除账单地址")
@doc "删除账单地址"
@handler DeleteBillingAddress
delete /billing/:id (DeleteBillingAddressRequest) returns (DeleteBillingAddressReply)
}
Expand Down
12 changes: 6 additions & 6 deletions api/admin/crm/trade/deliveryaddress.api
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ info(
)

service PowerX {
@doc("查询订单发货地址列表")
@doc "查询订单发货地址列表"
@handler ListDeliveryAddressesPage
get /delivery/page-list (ListDeliveryAddressesPageRequest) returns (ListDeliveryAddressesPageReply)

@doc("查询订单发货地址详情")
@doc "查询订单发货地址详情"
@handler GetDeliveryAddress
get /delivery/:id (GetDeliveryAddressRequest) returns (GetDeliveryAddressReply)

@doc("创建订单发货地址")
@doc "创建订单发货地址"
@handler CreateDeliveryAddress
post /delivery (CreateDeliveryAddressRequest) returns (CreateDeliveryAddressReply)

@doc("更新订单发货地址")
@doc "更新订单发货地址"
@handler PutDeliveryAddress
put /delivery/:id (PutDeliveryAddressRequest) returns (PutDeliveryAddressReply)

@doc("部分更新订单发货地址")
@doc "部分更新订单发货地址"
@handler PatchDeliveryAddress
patch /delivery/:id (PatchDeliveryAddressRequest) returns (PatchDeliveryAddressReply)

@doc("删除订单发货地址")
@doc "删除订单发货地址"
@handler DeleteDeliveryAddress
delete /delivery/:id (DeleteDeliveryAddressRequest) returns (DeleteDeliveryAddressReply)
}
Expand Down
12 changes: 6 additions & 6 deletions api/admin/crm/trade/logistics.api
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ info (

service PowerX {

@doc("查询物流列表")
@doc "查询物流列表"
@handler ListLogisticss
get /logisticses (ListLogisticssRequest) returns (ListLogisticssResponse)

@doc("获取物流详情")
@doc "获取物流详情"
@handler GetLogistics
get /logisticses/:id (GetLogisticsRequest) returns (GetLogisticsResponse)

@doc("创建物流")
@doc "创建物流"
@handler CreateLogistics
post /logisticses (CreateLogisticsRequest) returns (CreateLogisticsResponse)

@doc("更新物流")
@doc "更新物流"
@handler UpdateLogistics
put /logisticses/:id (UpdateLogisticsRequest) returns (UpdateLogisticsResponse)

@doc("部分更新物流")
@doc "部分更新物流"
@handler PatchLogistics
patch /logisticses/:id (PatchLogisticsRequest) returns (PatchLogisticsResponse)

@doc("删除物流")
@doc "删除物流"
@handler DeleteLogistics
delete /logisticses/:id (DeleteLogisticsRequest) returns (DeleteLogisticsResponse)
}
Expand Down
16 changes: 8 additions & 8 deletions api/admin/crm/trade/order.api
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,35 @@ import "./payment.api"
middleware: UserJWTAuth
)
service PowerX {
@doc("查询订单列表")
@doc "查询订单列表"
@handler ListOrdersPage
get /orders/page-list (ListOrdersPageRequest) returns (ListOrdersPageReply)

@doc("查询订单详情")
@doc "查询订单详情"
@handler GetOrder
get /orders/:id (GetOrderRequest) returns (GetOrderReply)

@doc("创建订单")
@doc "创建订单"
@handler CreateOrder
post /orders (CreateOrderRequest) returns (CreateOrderReply)

@doc("更新订单")
@doc "更新订单"
@handler PutOrder
put /orders/:id (PutOrderRequest) returns (PutOrderReply)

@doc("部分更新订单")
@doc "部分更新订单"
@handler PatchOrder
patch /orders/:id (PatchOrderRequest) returns (PatchOrderReply)

@doc("删除订单")
@doc "删除订单"
@handler DeleteOrder
delete /orders/:id (DeleteOrderRequest) returns (DeleteOrderReply)

@doc("导出订单")
@doc "导出订单"
@handler ExportOrders
get /orders/export (ExportOrdersRequest) returns (ExportOrdersReply)

@doc("导入订单")
@doc "导入订单"
@handler ImportOrders
post /orders/import returns (ImportOrdersReply)

Expand Down
12 changes: 6 additions & 6 deletions api/admin/crm/trade/refundorder.api
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ info(
middleware: UserJWTAuth
)
service PowerX {
@doc("查询退款单列表")
@doc "查询退款单列表"
@handler ListRefundOrdersPage
get /refund-order/page-list (ListRefundOrdersPageRequest) returns (ListRefundOrdersPageReply)

@doc("查询退款单详情")
@doc "查询退款单详情"
@handler GetRefundOrder
get /refund-order/:id (GetRefundOrderRequest) returns (GetRefundOrderReply)

@doc("创建退款单")
@doc "创建退款单"
@handler CreateRefundOrder
post /refund-order (CreateRefundOrderRequest) returns (CreateRefundOrderReply)

@doc("更新退款单")
@doc "更新退款单"
@handler PutRefundOrder
put /refund-order/:id (PutRefundOrderRequest) returns (PutRefundOrderReply)

@doc("部分更新退款单")
@doc "部分更新退款单"
@handler PatchRefundOrder
patch /refund-order/:id (PatchRefundOrderRequest) returns (PatchRefundOrderReply)

@doc("删除退款单")
@doc "删除退款单"
@handler DeleteRefundOrder
delete /refund-order/:id (DeleteRefundOrderRequest) returns (DeleteRefundOrderReply)
}
Expand Down
12 changes: 6 additions & 6 deletions api/admin/crm/trade/shippingaddress.api
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ info(
)

service PowerX {
@doc("查询收货地址列表")
@doc "查询收货地址列表"
@handler ListShippingAddressesPage
get /shipping/page-list (ListShippingAddressesPageRequest) returns (ListShippingAddressesPageReply)

@doc("查询收货地址详情")
@doc "查询收货地址详情"
@handler GetShippingAddress
get /shipping/:id (GetShippingAddressRequest) returns (GetShippingAddressReply)

@doc("创建收货地址")
@doc "创建收货地址"
@handler CreateShippingAddress
post /shipping (CreateShippingAddressRequest) returns (CreateShippingAddressReply)

@doc("更新收货地址")
@doc "更新收货地址"
@handler PutShippingAddress
put /shipping/:id (PutShippingAddressRequest) returns (PutShippingAddressReply)

@doc("部分更新收货地址")
@doc "部分更新收货地址"
@handler PatchShippingAddress
patch /shipping/:id (PatchShippingAddressRequest) returns (PatchShippingAddressReply)

@doc("删除收货地址")
@doc "删除收货地址"
@handler DeleteShippingAddress
delete /shipping/:id (DeleteShippingAddressRequest) returns (DeleteShippingAddressReply)
}
Expand Down
13 changes: 6 additions & 7 deletions api/admin/crm/trade/warehouse.api
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,27 @@ info (
)

service PowerX {

@doc("查询仓库列表")
@doc "查询仓库列表"
@handler ListWarehouses
get /warehouses (ListWarehousesRequest) returns (ListWarehousesResponse)

@doc("获取仓库详情")
@doc "获取仓库详情"
@handler GetWarehouse
get /warehouses/:id (GetWarehouseRequest) returns (GetWarehouseResponse)

@doc("创建仓库")
@doc "创建仓库"
@handler CreateWarehouse
post /warehouses (CreateWarehouseRequest) returns (CreateWarehouseResponse)

@doc("更新仓库")
@doc "更新仓库"
@handler UpdateWarehouse
put /warehouses/:id (UpdateWarehouseRequest) returns (UpdateWarehouseResponse)

@doc("部分更新仓库")
@doc "部分更新仓库"
@handler PatchWarehouse
patch /warehouses/:id (PatchWarehouseRequest) returns (PatchWarehouseResponse)

@doc("删除仓库")
@doc "删除仓库"
@handler DeleteWarehouse
delete /warehouses/:id (DeleteWarehouseRequest) returns (DeleteWarehouseResponse)
}
Expand Down
8 changes: 4 additions & 4 deletions api/admin/dictionary.api
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ type (
Total int64 `json:"total"`
}

GetDictionaryTypeRequest struct{
GetDictionaryTypeRequest{
DictionaryType string `path:"type"`
}

GetDictionaryTypeReply struct{
GetDictionaryTypeReply{
*DictionaryType
}
)
Expand Down Expand Up @@ -150,12 +150,12 @@ type (
List []DictionaryItem `json:"list"`
}

GetDictionaryItemRequest struct{
GetDictionaryItemRequest{
DictionaryType string `path:"type"`
DictionaryItem string `path:"key"`
}

GetDictionaryItemReply struct{
GetDictionaryItemReply{
*DictionaryItem
}
)
Expand Down
15 changes: 6 additions & 9 deletions api/admin/scrm/app/weworkapp.api
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ service PowerX {
get /options returns (AppWeWorkListReply)
}



type (
ApplicationRequest {
AgentId int `form:"agentId"`
Expand All @@ -45,13 +43,15 @@ type (
HomeUrl string `json:"homeUrl"`
CustomizedPublishStatus int `json:"customizedPublishStatus"`
}
AllowUserinfos {
User []User `json:"user"`
}
User {

WeworkUser {
Userid string `json:"userId"`
}

AllowUserinfos {
User []WeworkUser `json:"user"`
}

AllowPartys {
Partyid []int `json:"partyId"`
}
Expand All @@ -60,9 +60,6 @@ type (
}
)




type (
AppWeWorkListReply {
List []*AppWechat `json:"list"`
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions api/mp/product/productcategory.api
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ service PowerX {
}

type (
ListProductCategoriesRequest struct{
ListProductCategoriesRequest{
CategoryPId int `form:"categoryPId,optional"`
NeedChildren bool `form:"needChildren,optional"`
Limit int `form:"limit,optional"`
}

ListProductCategoriesReply struct{
ListProductCategoriesReply{
ProductCategories []*ProductCategory `json:"list"`
}
)
Expand Down
Loading

0 comments on commit be5588b

Please sign in to comment.