| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- const { post,get } = require('./request')
- module.exports = {
- // 生成主图详情页
- generatePhotoDetail(data){
- return post({
- url: '/handle_detail',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- addLogo(data){
- console.log(data);
- return post({
- url: '/add_logo',
- data: data
- })
- },
- getLogoList(data){
- return get({
- url: '/logo_list',
- data: data
- })
- },
- deleteLogo(data){
- console.log(data);
- return post({
- url: '/delete_logo',
- data: data
- })
- },
- // 根据货号获取商品图片 JSON(生成商品模板用)
- getGoodsImageJson(data){
- return get({
- url: '/get_goods_image_json',
- data: data,
- })
- },
- generatePoster(data){
- return post({
- url: '/shoes_compose?type=0',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- sceneSetPrepare(data){
- return post({
- url: '/scene_set/prepare',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- sceneSetRun(data){
- return post({
- url: '/scene_set/run',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- sceneSetSave(data){
- return post({
- url: '/scene_set/save',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- sceneSetCutout(data){
- return post({
- url: '/remove_background',
- data: data,
- headers:{
- 'Content-Type':"application/json",
- }
- })
- },
- }
|