Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
commit
75909fa9e4
|
@ -6,8 +6,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserInfoSetReq struct {
|
type UserInfoSetReq struct {
|
||||||
Module string `form:"module,options=[merchant_category]"` // json格式字符串
|
Module string `form:"module,options=[merchant_category,logo_merchant_category]"` // json格式字符串
|
||||||
Metadata string `form:"metadata"` // json格式字符串
|
Metadata string `form:"metadata"` // json格式字符串
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserAgainOrderReq struct {
|
type UserAgainOrderReq struct {
|
||||||
|
|
|
@ -186,15 +186,6 @@ func (w *wsConnectItem) consumeRenderCache(data []byte) {
|
||||||
logx.Info("合成刀版图成功,合成刀版图数据:", combineReq, ",logo图片:", renderImageData.RenderData.Logo, " 刀版图:", *res.ResourceUrl)
|
logx.Info("合成刀版图成功,合成刀版图数据:", combineReq, ",logo图片:", renderImageData.RenderData.Logo, " 刀版图:", *res.ResourceUrl)
|
||||||
//获取唯一id
|
//获取唯一id
|
||||||
taskId := w.genRenderTaskId(renderImageData, model3dInfo, productTemplate, element)
|
taskId := w.genRenderTaskId(renderImageData, model3dInfo, productTemplate, element)
|
||||||
//记录刀版图合成消耗时间跟上传刀版图时间
|
|
||||||
w.modifyRenderTaskProperty(renderImageControlChanItem{
|
|
||||||
option: 2,
|
|
||||||
taskId: taskId,
|
|
||||||
taskProperty: renderTask{
|
|
||||||
combineTakesTime: res.DiffTimeLogoCombine,
|
|
||||||
uploadCombineImageTakesTime: res.DiffTimeUploadFile,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
//查询有没有缓存的资源,有就返回######################
|
//查询有没有缓存的资源,有就返回######################
|
||||||
resource, err := w.logic.svcCtx.AllModels.FsResource.FindOneById(w.logic.ctx, taskId)
|
resource, err := w.logic.svcCtx.AllModels.FsResource.FindOneById(w.logic.ctx, taskId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -227,12 +218,14 @@ func (w *wsConnectItem) consumeRenderCache(data []byte) {
|
||||||
taskId: taskId,
|
taskId: taskId,
|
||||||
renderId: renderImageData.RenderId,
|
renderId: renderImageData.RenderId,
|
||||||
})
|
})
|
||||||
//记录刀版图
|
//记录刀版图合成消耗时间跟上传刀版图时间以及刀版图
|
||||||
w.modifyRenderTaskProperty(renderImageControlChanItem{
|
w.modifyRenderTaskProperty(renderImageControlChanItem{
|
||||||
option: 2,
|
option: 2,
|
||||||
taskId: taskId,
|
taskId: taskId,
|
||||||
taskProperty: renderTask{
|
taskProperty: renderTask{
|
||||||
combineImage: combineImage,
|
combineTakesTime: res.DiffTimeLogoCombine,
|
||||||
|
uploadCombineImageTakesTime: res.DiffTimeUploadFile,
|
||||||
|
combineImage: combineImage,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
//组装数据
|
//组装数据
|
||||||
|
@ -460,7 +453,7 @@ func (w *wsConnectItem) operationRenderTask() {
|
||||||
w.sendToOutChan(w.respondDataFormat(constants.WEBSOCKET_RENDER_IMAGE, websocket_data.RenderImageRspMsg{
|
w.sendToOutChan(w.respondDataFormat(constants.WEBSOCKET_RENDER_IMAGE, websocket_data.RenderImageRspMsg{
|
||||||
RenderId: taskData.renderId,
|
RenderId: taskData.renderId,
|
||||||
Image: data.renderNotifyImageUrl,
|
Image: data.renderNotifyImageUrl,
|
||||||
CombineImage: data.taskProperty.combineImage,
|
CombineImage: taskData.combineImage,
|
||||||
RenderProcessTime: websocket_data.RenderProcessTime{
|
RenderProcessTime: websocket_data.RenderProcessTime{
|
||||||
CombineTakesTime: CombineTakesTime,
|
CombineTakesTime: CombineTakesTime,
|
||||||
UnityRenderTakesTime: UnityRenderTakesTime,
|
UnityRenderTakesTime: UnityRenderTakesTime,
|
||||||
|
@ -476,7 +469,7 @@ func (w *wsConnectItem) operationRenderTask() {
|
||||||
renderId: data.renderId,
|
renderId: data.renderId,
|
||||||
}
|
}
|
||||||
|
|
||||||
case 2: //修改(耗时)属性
|
case 2: //修改任务属性
|
||||||
if taskData, ok := w.extendRenderProperty.renderImageTask[data.taskId]; ok {
|
if taskData, ok := w.extendRenderProperty.renderImageTask[data.taskId]; ok {
|
||||||
//合图耗时
|
//合图耗时
|
||||||
if data.taskProperty.combineTakesTime != 0 {
|
if data.taskProperty.combineTakesTime != 0 {
|
||||||
|
|
|
@ -10,56 +10,56 @@ info (
|
||||||
import "basic.api"
|
import "basic.api"
|
||||||
|
|
||||||
service home-user-auth {
|
service home-user-auth {
|
||||||
|
|
||||||
// @handler UserRegisterHandler
|
// @handler UserRegisterHandler
|
||||||
// post /api/user/register(RequestUserRegister) returns (response);
|
// post /api/user/register(RequestUserRegister) returns (response);
|
||||||
|
|
||||||
@handler UserFontsHandler
|
@handler UserFontsHandler
|
||||||
get /api/user/fonts(request) returns (response);
|
get /api/user/fonts(request) returns (response);
|
||||||
|
|
||||||
@handler UserGetTypeHandler
|
@handler UserGetTypeHandler
|
||||||
get /api/user/get-type(request) returns (response);
|
get /api/user/get-type(request) returns (response);
|
||||||
|
|
||||||
@handler UserSaveBasicInfoHandler
|
@handler UserSaveBasicInfoHandler
|
||||||
post /api/user/basic-info(RequestBasicInfoForm) returns (response);
|
post /api/user/basic-info(RequestBasicInfoForm) returns (response);
|
||||||
|
|
||||||
@handler UserStatusConfigHandler
|
@handler UserStatusConfigHandler
|
||||||
get /api/user/status-config(request) returns (response);
|
get /api/user/status-config(request) returns (response);
|
||||||
|
|
||||||
@handler UserBasicInfoHandler
|
@handler UserBasicInfoHandler
|
||||||
get /api/user/basic-info(request) returns (response);
|
get /api/user/basic-info(request) returns (response);
|
||||||
|
|
||||||
@handler UserAddressListHandler
|
@handler UserAddressListHandler
|
||||||
get /api/user/address-list(request) returns (response);
|
get /api/user/address-list(request) returns (response);
|
||||||
|
|
||||||
@handler UserAddAddressHandler
|
@handler UserAddAddressHandler
|
||||||
post /api/user/add-address(RequestAddAddress) returns (response);
|
post /api/user/add-address(RequestAddAddress) returns (response);
|
||||||
|
|
||||||
@handler UserContactServiceHandler
|
@handler UserContactServiceHandler
|
||||||
post /api/user/contact-service (RequestContactService) returns (response);
|
post /api/user/contact-service (RequestContactService) returns (response);
|
||||||
|
|
||||||
// @handler UserOderListHandler
|
// @handler UserOderListHandler
|
||||||
// get /api/user/order-list(RequestOrderId) returns (response);
|
// get /api/user/order-list(RequestOrderId) returns (response);
|
||||||
|
|
||||||
@handler UserOderDeleteHandler
|
@handler UserOderDeleteHandler
|
||||||
post /api/user/order-delete(RequestOrderId) returns (response);
|
post /api/user/order-delete(RequestOrderId) returns (response);
|
||||||
|
|
||||||
//订单列表
|
//订单列表
|
||||||
@handler UserOrderListHandler
|
@handler UserOrderListHandler
|
||||||
get /api/user/order-list (UserOrderListReq) returns (response);
|
get /api/user/order-list (UserOrderListReq) returns (response);
|
||||||
|
|
||||||
//删除订单
|
//删除订单
|
||||||
@handler UserOrderDeleteHandler
|
@handler UserOrderDeleteHandler
|
||||||
get /api/user/order-delete (UserOrderDeleteReq) returns (response);
|
get /api/user/order-delete (UserOrderDeleteReq) returns (response);
|
||||||
|
|
||||||
//取消订单
|
//取消订单
|
||||||
@handler UserOrderCancelHandler
|
@handler UserOrderCancelHandler
|
||||||
get /api/user/order-cancel (UserOrderCancelReq) returns (response);
|
get /api/user/order-cancel (UserOrderCancelReq) returns (response);
|
||||||
|
|
||||||
// 用户logo列表
|
// 用户logo列表
|
||||||
@handler UserLogoListHandler
|
@handler UserLogoListHandler
|
||||||
get /api/user/logo-list (UserLogoListReq) returns (response);
|
get /api/user/logo-list (UserLogoListReq) returns (response);
|
||||||
|
|
||||||
// 再来一单
|
// 再来一单
|
||||||
@handler UserAgainOrderHandler
|
@handler UserAgainOrderHandler
|
||||||
get /api/user/one-more-order (UserAgainOrderReq) returns (response);
|
get /api/user/one-more-order (UserAgainOrderReq) returns (response);
|
||||||
|
@ -71,8 +71,8 @@ service home-user-auth {
|
||||||
|
|
||||||
type (
|
type (
|
||||||
UserInfoSetReq {
|
UserInfoSetReq {
|
||||||
Module string `form:"module,options=[merchant_category]"` // json格式字符串
|
Module string `form:"module,options=[merchant_category,logo_merchant_category]"` // json格式字符串
|
||||||
Metadata string `form:"metadata"` // json格式字符串
|
Metadata string `form:"metadata"` // json格式字符串
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user