vue-cli init
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class CommonService extends BaseService {
|
||||
/**
|
||||
* 唯一性检查
|
||||
*/
|
||||
uniqueCheck(tableName, fieldName, fieldValue, excludeId) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `common/uniqueCheck`,
|
||||
data: {
|
||||
tableName: tableName,
|
||||
fieldName: fieldName,
|
||||
fieldValue: fieldValue,
|
||||
excludeId: excludeId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 多字段唯一性检查
|
||||
*
|
||||
* {
|
||||
* "tableName": "sys_user",
|
||||
* "fieldList": [
|
||||
* {"fieldName": "code11", "fieldValue": "111"},
|
||||
* {"fieldName": "code", "fieldValue": "1"}
|
||||
* ],
|
||||
* "excludeId": ""
|
||||
* }
|
||||
*/
|
||||
uniqueCheckByFields(parameterMap) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `common/uniqueCheckByFields`,
|
||||
data: parameterMap
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成分享图片
|
||||
* @param storeId
|
||||
*/
|
||||
generateShareImage(data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `common/generateShareImage`,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* web端测试
|
||||
*/
|
||||
downloadApp() {
|
||||
return this.httpUtil.myGet({ // 获得服务器更新信息
|
||||
url: 'tbappversioninfo/selectNewest',
|
||||
data: {
|
||||
platformType: 'android',
|
||||
versionType: 'release',
|
||||
deleted: 0
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 后台生成二维码,自定义二维码内容。
|
||||
* @param content
|
||||
*/
|
||||
generateQrcodeBase64(content) {
|
||||
return this.httpUtil.myGet({ // 获得服务器更新信息
|
||||
url: 'common/generateQrcodeToBase64',
|
||||
data: {
|
||||
content: content
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取七牛云上传Token。
|
||||
*/
|
||||
findQiNiuUploadToken() {
|
||||
return this.httpUtil.myGet({ // 获得服务器更新信息
|
||||
url: 'common/findQiNiuUploadToken',
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class LoginService extends BaseService {
|
||||
|
||||
login(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: 'sysuser/login',
|
||||
data: {
|
||||
username: params.username,
|
||||
password: params.password
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 扫码登陆
|
||||
* @param data
|
||||
* @returns {*}
|
||||
*/
|
||||
loginByScan(data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: 'sysuser/loginByScan',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 从服务号登陆
|
||||
* @param data
|
||||
* @returns {*}
|
||||
*/
|
||||
loginByFwh(data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: 'sysuser/loginByFwh',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序登录
|
||||
* @param data
|
||||
* @returns {*}
|
||||
*/
|
||||
miniAppLogin(data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: 'wechat/miniAppLogin',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
gotoIndexPage() {
|
||||
if (!this.globalVariable.userInfo.tbCommunityUser || this.globalVariable.userInfo.tbCommunityUser.type === '1') {
|
||||
uni.showToast({title: '登录成功,即将跳转到首页', icon: 'none'})
|
||||
uni.navigateTo({
|
||||
url: `/pages/sub/sub1-tabs/index`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class OrderGoodsAfterSaleReportService extends BaseService {
|
||||
|
||||
statisticOrderGoodsAfterSaleTotal(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `ordergoodaftersalesreport/statisticOrderGoodsAfterSaleTotal`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class OrderReportService extends BaseService {
|
||||
|
||||
statisticOrderTotal(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderTotal`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderNumber(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderNumber`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderSaleMoney(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderSaleMoney`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderNumber24Hours(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderNumber24Hours`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderSaleMoney24Hours(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderSaleMoney24Hours`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderNumberRecent30Days(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderNumberRecent30Days`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderSaleMoneyRecent30Days(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderSaleMoneyRecent30Days`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderNumberRecentMonthsOfYear(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderNumberRecentMonthsOfYear`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
|
||||
statisticOrderSaleMoneyRecentMonthsOfYear(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `orderreport/statisticOrderSaleMoneyRecentMonthsOfYear`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class StoreReportService extends BaseService {
|
||||
|
||||
statisticStoreInfo(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `storereport/statisticStoreInfo`,
|
||||
data: params
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysAdministrativeRegionService extends BaseService {
|
||||
|
||||
findSysAdministrativeRegionCascaderList () {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysadministrativeregion/findCascaderList`
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysConfigService extends BaseService {
|
||||
|
||||
findSysConfig(sysConfig) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysconfig/findOne`,
|
||||
data: sysConfig
|
||||
})
|
||||
}
|
||||
|
||||
saveSysConfig(sysConfig) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysconfig/save`,
|
||||
data: sysConfig
|
||||
})
|
||||
}
|
||||
|
||||
updateSysConfig(sysConfig) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysconfig/update`,
|
||||
data: sysConfig
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteSysConfigByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysconfig/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysDictionaryService extends BaseService {
|
||||
|
||||
/**
|
||||
* 获取下拉控件值列表
|
||||
* @param parentCode // 数据字典编码,根据该编码查询所有下级节点
|
||||
* @param excludeSubCods // 过滤掉不需要的数据字典编号,过滤多个值以逗号,分割。
|
||||
*/
|
||||
optionList(parentCode, excludeSubCods = null) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysdictionary/findSysDictionaryListByParentCode`,
|
||||
data: {
|
||||
code: parentCode,
|
||||
excludeCods: excludeSubCods
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
findSysDictionaryTree(sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysdictionary/findTree`,
|
||||
data: sysDictionary
|
||||
})
|
||||
}
|
||||
|
||||
saveSysDictionary(sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysdictionary/save`,
|
||||
data: sysDictionary
|
||||
})
|
||||
}
|
||||
|
||||
updateSysDictionary(sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysdictionary/update`,
|
||||
data: sysDictionary
|
||||
})
|
||||
}
|
||||
|
||||
deleteSysDictionary(sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysdictionary/deleteByIdCascade`,
|
||||
data: {id: sysDictionary.id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysFileService extends BaseService {
|
||||
|
||||
deleteSysFileById(params) {
|
||||
const _self = this;
|
||||
_self.httpUtil.myGet({
|
||||
url: `sysfile/deleteById?id=${params.id}`
|
||||
})
|
||||
}
|
||||
|
||||
deleteSysFile(sysFile) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysfile/deleteById`,
|
||||
data: sysFile
|
||||
})
|
||||
}
|
||||
|
||||
findSysFileList(params) {
|
||||
console.log("findSysFileList(params) {", params);
|
||||
return this.httpUtil.myGet({
|
||||
url: `sysfile/findList`,
|
||||
data: {
|
||||
id: params.id ? params.id : undefined,
|
||||
fkId: params.fkId ? params.fkId : undefined,
|
||||
code: params.code ? params.code : undefined,
|
||||
name: params.name ? params.name : undefined,
|
||||
type: params.type ? params.type : undefined,
|
||||
typeMark: params.typeMark ? params.typeMark : undefined,
|
||||
orderBy: 'display_order asc'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
updateSysFile(sysFile) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysfile/update`,
|
||||
data: sysFile
|
||||
})
|
||||
}
|
||||
|
||||
saveSysFile(sysFile) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysfile/save`,
|
||||
data: sysFile,
|
||||
})
|
||||
}
|
||||
|
||||
batchSaveOrUpdateFile(json) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysfile/batchSaveOrUpdate`,
|
||||
data: json,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找七牛云上的图片url
|
||||
* @param sysFile
|
||||
* @return result.url // 七牛云吐图片地址
|
||||
*/
|
||||
findQiniuCloudImageUrl(sysFile) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysfile/findQiniuCloudImageUrl`,
|
||||
data: sysFile,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysOrganizationUserService extends BaseService {
|
||||
batchSaveSysOrganizationUser (data) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `sysorganizationuser/batchSave`,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteSysOrganizationUser (data) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `sysorganizationuser/batchDelete`,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
updateSysOrganizationUser (sysOrganization) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysorganizationuser/update`,
|
||||
data: sysOrganization
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysOrganizationService extends BaseService {
|
||||
|
||||
findSysOrganizationTree (sysOrganization) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysorganization/findTree`,
|
||||
data: sysOrganization
|
||||
})
|
||||
}
|
||||
|
||||
saveSysOrganization (sysOrganization) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysorganization/save`,
|
||||
data: sysOrganization
|
||||
})
|
||||
}
|
||||
|
||||
updateSysOrganization (sysOrganization) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysorganization/update`,
|
||||
data: sysOrganization
|
||||
})
|
||||
}
|
||||
|
||||
deleteSysOrganization (sysOrganization) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysorganization/deleteByIdCascade`,
|
||||
data: {id: sysOrganization.id}
|
||||
})
|
||||
}
|
||||
|
||||
findSysOrganizationListByUserId (data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysorganization/findSysOrganizationListByUserId`,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysResourceService extends BaseService {
|
||||
findSysResourceTree (sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysresource/findTree`,
|
||||
data: sysDictionary
|
||||
})
|
||||
}
|
||||
|
||||
saveSysResource (sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysresource/save`,
|
||||
data: sysDictionary
|
||||
})
|
||||
}
|
||||
|
||||
updateSysResource (sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysresource/update`,
|
||||
data: sysDictionary
|
||||
})
|
||||
}
|
||||
|
||||
deleteSysResource (sysDictionary) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysresource/deleteByIdCascade`,
|
||||
data: {id: sysDictionary.id}
|
||||
})
|
||||
}
|
||||
|
||||
findAssignedResourcesIdsByRoleId (data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysresource/findAssignedResourcesIdsByRoleId`,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
saveAssignedResourcesByRoleId (data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysresource/saveAssignedResourcesByRoleId`,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class SysUserService extends BaseService {
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveSysUser(sysUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/save`,
|
||||
data: sysUser
|
||||
})
|
||||
}
|
||||
|
||||
register(sysUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/register`,
|
||||
data: sysUser
|
||||
})
|
||||
}
|
||||
|
||||
validRawPassword(sysUser) {
|
||||
const _self = this;
|
||||
return _self.httpUtil.myPost({
|
||||
url: `sysuser/validRawPassword`,
|
||||
data: sysUser
|
||||
})
|
||||
}
|
||||
|
||||
updatePassword(sysUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/updatePassword`,
|
||||
data: sysUser
|
||||
})
|
||||
}
|
||||
|
||||
changePhone(sysUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/changePhone`,
|
||||
data: sysUser
|
||||
})
|
||||
}
|
||||
|
||||
updateSysUser(sysUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/update`,
|
||||
data: sysUser
|
||||
})
|
||||
}
|
||||
|
||||
updateSessionData(sysUser) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `sysuser/updateSessionData`,
|
||||
data: sysUser
|
||||
})
|
||||
}
|
||||
|
||||
markTbCommunityUserTypeById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/markTbCommunityUserTypeById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteSysUserList(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuser/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
import {WechatService} from "./wechat.service";
|
||||
|
||||
export class SysUserThirdLoginService extends BaseService {
|
||||
|
||||
findSysUserThirdLoginList(sysUserThirdLogin) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuserthirdlogin/findList`,
|
||||
data: sysUserThirdLogin,
|
||||
orderBy: 'display_order asc'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 微信登录授权-unionid
|
||||
*/
|
||||
weixinLoginAuthorizationByUnionid(params) {
|
||||
const _self = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
return _self.httpUtil.myPost({
|
||||
url: 'sysuserthirdlogin/weixinLoginAuthorizationByUnionid',
|
||||
data: params
|
||||
}).then(result => {
|
||||
resolve(result);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 微信登录-unionid版
|
||||
*/
|
||||
weixinLoginByUnionid(name) {
|
||||
const _self = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
new WechatService().findUnionidByCode().then(result1 => {
|
||||
if (result1 && result1.data) {
|
||||
_self.httpUtil.myPost({
|
||||
url: 'sysuserthirdlogin/weixinLoginByUnionid',
|
||||
data: {
|
||||
unionid: result1.data,
|
||||
}
|
||||
}).then(result2 => {
|
||||
resolve(result2);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
deleteSysUserThirdLoginByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `sysuserthirdlogin/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
import {CommonUtil} from "../core/utils/common.util";
|
||||
|
||||
export class TbAdService extends BaseService {
|
||||
|
||||
findTbAdList(tbAd) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbad/findList`,
|
||||
data: tbAd,
|
||||
})
|
||||
}
|
||||
|
||||
findTbAdListCascade(tbAd) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbad/findTbAdListCascade`,
|
||||
data: tbAd,
|
||||
})
|
||||
}
|
||||
|
||||
findTbAdById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbad/findById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
saveTbAd(tbAd) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbad/save`,
|
||||
data: tbAd
|
||||
})
|
||||
}
|
||||
|
||||
updateTbAd(tbAd) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbad/update`,
|
||||
data: tbAd
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbAdById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbad/deleteById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过广告类型导航到对应页面
|
||||
* 广告类型:0-仅展示广告图片,1-内部打开网址,2-跳转商品详情,3-跳转店铺,4-跳转到一级系统分类,5-跳转到二级系统分类,6-跳转到商城动态分类列表,7-跳转到商城动态详情
|
||||
*/
|
||||
navByType(_selfVue, tbAd) {
|
||||
if (tbAd.type === "0") {
|
||||
} else if (tbAd.type === "1") {
|
||||
CommonUtil.navigateTo(`/pages/common/open-outer-url/index?url=${tbAd.navUrl}`);
|
||||
} else if (tbAd.type === "2") {
|
||||
CommonUtil.navigateTo(`/pages/common/goods-detail/index?id=${tbAd.navGoodsId}`);
|
||||
} else if (tbAd.type === "3") {
|
||||
CommonUtil.navigateTo(`/pages/common/store/index?storeId=${tbAd.navStoreId}`);
|
||||
} else if (tbAd.type === "4") {
|
||||
_selfVue.switchTarBarByComponentRef('goodsClassRef');
|
||||
} else if (tbAd.type === "5") {
|
||||
let parent = {
|
||||
id: tbAd.navSystemClassGrade2ParentId,
|
||||
name: tbAd.navSystemClassGrade2ParentName,
|
||||
type: tbAd.navSystemClassGrade2ParentType,
|
||||
};
|
||||
let item = {
|
||||
id: tbAd.navSystemClassGrade2Id,
|
||||
type: tbAd.navSystemClassGrade2ParentType,
|
||||
};
|
||||
CommonUtil.navigateTo(`/pages/sub/sub1-tabs/tabs/goods-class/goods-class-filter/index`, null, {parentStoreClass: parent, tbStoreClass: item});
|
||||
} else if (tbAd.type === "6") {
|
||||
let tbCommunityDynamicType = {
|
||||
id: tbAd.navCommunityDynamicTypeId,
|
||||
name: tbAd.navCommunityDynamicTypeName
|
||||
};
|
||||
CommonUtil.navigateTo(`/pages/sub/sub1-tabs/tabs/community-dynamic/community-dynamic-list/index`, null, tbCommunityDynamicType);
|
||||
} else if (tbAd.type === "7") {
|
||||
let tbCommunityDynamic = {
|
||||
id: tbAd.navCommunityDynamicId
|
||||
};
|
||||
CommonUtil.navigateTo(`/pages/sub/sub1-tabs/tabs/community-dynamic/community-dynamic-list/community-dynamic-detail/index`, null, tbCommunityDynamic);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbCollectUserGoodsService extends BaseService {
|
||||
findTbCollectUserGoodsList (tbCollectUserGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectusergoods/findList`,
|
||||
data: tbCollectUserGoods
|
||||
})
|
||||
}
|
||||
|
||||
findTableListCascade (params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectusergoods/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
saveTbCollectUserGoods (tbCollectUserGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectusergoods/save`,
|
||||
data: tbCollectUserGoods
|
||||
})
|
||||
}
|
||||
|
||||
updateTbCollectUserGoods (tbCollectUserGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectusergoods/update`,
|
||||
data: tbCollectUserGoods
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbCollectUserGoods (tbCollectUserGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectusergoods/deleteById`,
|
||||
data: tbCollectUserGoods
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbCollectUserGoodsByIds (ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectusergoods/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
findCollectNum (tbCollectUserGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectusergoods/findCollectNum`,
|
||||
data: tbCollectUserGoods
|
||||
})
|
||||
}
|
||||
|
||||
isCollectedGoods (tbCollectUserGoods) {
|
||||
return this.httpUtil.myGet({
|
||||
url: `tbcollectusergoods/isCollected`,
|
||||
data: tbCollectUserGoods
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbCollectUserStoreService extends BaseService {
|
||||
|
||||
findTbCollectUserStoreList(tbCollectUserStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/findList`,
|
||||
data: tbCollectUserStore
|
||||
})
|
||||
}
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
saveTbCollectUserStore(tbCollectUserStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/save`,
|
||||
data: tbCollectUserStore
|
||||
})
|
||||
}
|
||||
|
||||
updateTbCollectUserStore(tbCollectUserStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/update`,
|
||||
data: tbCollectUserStore
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbCollectUserStore(tbCollectUserStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/deleteById`,
|
||||
data: tbCollectUserStore
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbCollectUserStoreByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
findCollectNum(tbCollectUserStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/findCollectNum`,
|
||||
data: tbCollectUserStore
|
||||
})
|
||||
}
|
||||
|
||||
isCollectedStore(tbCollectUserStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcollectuserstore/isCollected`,
|
||||
data: tbCollectUserStore
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityAdminService extends BaseService {
|
||||
|
||||
findTbCommunityAdminList(tbCommunityAdmin) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityadmin/findList`,
|
||||
data: tbCommunityAdmin,
|
||||
orderBy: "display_order asc"
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityAdminById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityadmin/findById`,
|
||||
data: {id: id},
|
||||
});
|
||||
}
|
||||
|
||||
findTableTbCommunityAdminList(tbCommunityAdmin) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityadmin/findTableList`,
|
||||
data: tbCommunityAdmin,
|
||||
orderBy: "display_order asc"
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityAdmin(tbCommunityAdmin) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityadmin/save`,
|
||||
data: tbCommunityAdmin
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityAdmin(tbCommunityAdmin) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityadmin/update`,
|
||||
data: tbCommunityAdmin
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbCommunityAdminByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityadmin/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
import {CommonUtil} from "../core/utils/common.util";
|
||||
|
||||
export class TbCommunityComplaintService extends BaseService {
|
||||
|
||||
findTbCommunityComplaintList(tbCommunityComplaint) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitycomplaint/findList`,
|
||||
data: tbCommunityComplaint,
|
||||
orderBy: 'display_order asc'
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityComplaint(tbCommunityComplaint) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitycomplaint/save`,
|
||||
data: tbCommunityComplaint
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityComplaint(tbCommunityComplaint) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitycomplaint/update`,
|
||||
data: tbCommunityComplaint
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbCommunityComplaintByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitycomplaint/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 举报留言
|
||||
*/
|
||||
complaintAdd(item, type) {
|
||||
const _self = this;
|
||||
|
||||
let data = {
|
||||
message: '',
|
||||
title: '',
|
||||
};
|
||||
if (type == 0) {
|
||||
data.message = '确定举报该动态吗?';
|
||||
data.title = '举报动态';
|
||||
} else if (type == 1) {
|
||||
data.message = '确定举报该留言吗?';
|
||||
data.title = '举报留言';
|
||||
} else if (type == 2) {
|
||||
data.message = '确定举报该评价吗?';
|
||||
data.title = '举报评价';
|
||||
} else if (type == 3) {
|
||||
data.message = '确定举报该店铺吗?';
|
||||
data.title = '举报店铺';
|
||||
}
|
||||
|
||||
CommonUtil.alert({
|
||||
header: '提示!',
|
||||
message: data.message,
|
||||
buttons: [
|
||||
{
|
||||
text: '取消',
|
||||
role: 'cancel',
|
||||
handler: (blah) => {
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '确定',
|
||||
handler: () => {
|
||||
_self.router.navigate(['/community-complaint-add'], {
|
||||
queryParams: {
|
||||
title: data.title,
|
||||
type: type,
|
||||
fkId: item.id,
|
||||
toUserId: item.userId,
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityConsumptionService extends BaseService {
|
||||
|
||||
findTbCommunityConsumptionList(tbCommunityConsumption) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/findList`,
|
||||
data: tbCommunityConsumption,
|
||||
});
|
||||
}
|
||||
|
||||
findTop3List(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/findTableTopList?pageNum=1&pageSize=3`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
findTableTopList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/findTableTopList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
findTableTbCommunityConsumptionList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityConsumption(tbCommunityConsumption) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/findOne`,
|
||||
data: tbCommunityConsumption,
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityConsumptionById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/findById`,
|
||||
data: {id: id},
|
||||
});
|
||||
}
|
||||
|
||||
isConsumption(data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/isConsumption`,
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityConsumption(tbCommunityConsumption) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/save`,
|
||||
data: tbCommunityConsumption
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityConsumption(tbCommunityConsumption) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/update`,
|
||||
data: tbCommunityConsumption
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbCommunityConsumptionById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityconsumption/deleteById`,
|
||||
data: {id: id}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityDynamicCommentService extends BaseService {
|
||||
|
||||
findTree(tbCommunityDynamicComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/findTree`,
|
||||
data: tbCommunityDynamicComment
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityDynamicCommentList(tbCommunityDynamicComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/findList`,
|
||||
data: tbCommunityDynamicComment
|
||||
});
|
||||
}
|
||||
|
||||
findTableTbCommunityDynamicCommentList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
});
|
||||
}
|
||||
|
||||
findReplyTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/findReplyTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityDynamicCommentById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/findTbCommunityDynamicCommentById`,
|
||||
data: {id: id}
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityDynamicComment(tbCommunityDynamicComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/save`,
|
||||
data: tbCommunityDynamicComment
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityDynamicComment(tbCommunityDynamicComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/update`,
|
||||
data: tbCommunityDynamicComment
|
||||
});
|
||||
}
|
||||
|
||||
batchDeleteTbCommunityDynamicCommentByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamiccomment/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityDynamicReadedService extends BaseService {
|
||||
|
||||
findTbCommunityDynamicReadedList(tbCommunityDynamicReaded) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamicreaded/findList`,
|
||||
data: tbCommunityDynamicReaded,
|
||||
orderBy: 'display_order asc'
|
||||
});
|
||||
}
|
||||
|
||||
findUnreadCount(tbCommunityDynamicReaded) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamicreaded/findUnreadCount`,
|
||||
data: tbCommunityDynamicReaded,
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityDynamicReaded(tbCommunityDynamicReaded) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamicreaded/saveTbCommunityDynamicReaded`,
|
||||
data: tbCommunityDynamicReaded
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityDynamicReaded(tbCommunityDynamicReaded) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamicreaded/update`,
|
||||
data: tbCommunityDynamicReaded
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbCommunityDynamicReadedByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamicreaded/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityDynamicTypeService extends BaseService {
|
||||
|
||||
/**
|
||||
* 查找动态分类,并包含每个分类最近5条动态
|
||||
*/
|
||||
findTbCommunityDynamicTypeListContainLatestDynamic(tbCommunityDynamicType) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamictype/findTbCommunityDynamicTypeListContainLatestDynamic`,
|
||||
data: tbCommunityDynamicType
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityDynamicTypeList(tbCommunityDynamicType) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamictype/findList`,
|
||||
data: tbCommunityDynamicType
|
||||
});
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamictype/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
findTableTbCommunityDynamicTypeList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamictype/findTableTbCommunityDynamicTypeList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
saveTbCommunityDynamicType(tbCommunityDynamicType) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamictype/save`,
|
||||
data: tbCommunityDynamicType
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityDynamicType(tbCommunityDynamicType) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamictype/update`,
|
||||
data: tbCommunityDynamicType
|
||||
});
|
||||
}
|
||||
|
||||
batchDeleteTbCommunityDynamicTypeByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamictype/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityDynamicService extends BaseService {
|
||||
|
||||
findTbCommunityDynamicById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamic/findTbCommunityDynamicById`,
|
||||
data: {id: id},
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityDynamicList(tbCommunityDynamic) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamic/findList`,
|
||||
data: tbCommunityDynamic,
|
||||
orderBy: 'display_order asc'
|
||||
});
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamic/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
findTableTbCommunityDynamicList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamic/findTableTbCommunityDynamicList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityDynamic(tbCommunityDynamic) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamic/save`,
|
||||
data: tbCommunityDynamic
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityDynamic(tbCommunityDynamic) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamic/update`,
|
||||
data: tbCommunityDynamic
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbCommunityDynamicByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitydynamic/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreSenderService extends BaseService {
|
||||
|
||||
findTbStoreSenderList(tbStoreSender) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoresender/findList`,
|
||||
data: tbStoreSender,
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreSenderById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoresender/findById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreSender(tbStoreSender) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoresender/save`,
|
||||
data: tbStoreSender
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreSender(tbStoreSender) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoresender/update`,
|
||||
data: tbStoreSender
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStoreSenderById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoresender/deleteById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityLotteryUserService extends BaseService {
|
||||
|
||||
findTbCommunityLotteryUserList(tbCommunityLotteryUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/findList`,
|
||||
data: tbCommunityLotteryUser,
|
||||
});
|
||||
}
|
||||
|
||||
findTableListCascade(param) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityLotteryUser(tbCommunityLotteryUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/findOne`,
|
||||
data: tbCommunityLotteryUser,
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityLotteryUserById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/findById`,
|
||||
data: {id: id},
|
||||
});
|
||||
}
|
||||
|
||||
statisticsMoney(data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/statisticsMoney`,
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityLotteryUser(tbCommunityLotteryUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/save`,
|
||||
data: tbCommunityLotteryUser
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityLotteryUser(tbCommunityLotteryUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/update`,
|
||||
data: tbCommunityLotteryUser
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbCommunityLotteryUserById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylotteryuser/deleteById`,
|
||||
data: {id: id}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbCommunityLotteryService extends BaseService {
|
||||
|
||||
findTbCommunityLotteryList(tbCommunityLottery) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/findList`,
|
||||
data: tbCommunityLottery,
|
||||
});
|
||||
}
|
||||
|
||||
findPreviousTableTbCommunityLotteryList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/findPreviousTableTbCommunityLotteryList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
});
|
||||
}
|
||||
|
||||
findNextTbCommunityLottery(tbCommunityLottery) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/findNextTbCommunityLottery`,
|
||||
data: tbCommunityLottery,
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityLotteryById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/findById`,
|
||||
data: {id: id},
|
||||
});
|
||||
}
|
||||
|
||||
findTbCommunityLotteryByWinningUser(tbCommunityLottery) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/findTbCommunityLotteryByWinningUser`,
|
||||
data: tbCommunityLottery,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找我的中奖纪录
|
||||
*/
|
||||
findTableTbCommunityLotteryListByMyWinning(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/findTableTbCommunityLotteryListByMyWinning?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
});
|
||||
}
|
||||
|
||||
saveTbCommunityLottery(tbCommunityLottery) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/save`,
|
||||
data: tbCommunityLottery
|
||||
});
|
||||
}
|
||||
|
||||
updateTbCommunityLottery(tbCommunityLottery) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/update`,
|
||||
data: tbCommunityLottery
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbCommunityLotteryById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunitylottery/deleteById`,
|
||||
data: {id: id}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbCommunityUserTypeService extends BaseService {
|
||||
|
||||
findTableTbCommunityUserTypeList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityusertype/findTableTbCommunityUserTypeList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbCommunityUserTypeList(tbCommunityUserType) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityusertype/findList`,
|
||||
data: tbCommunityUserType
|
||||
})
|
||||
}
|
||||
|
||||
saveTbCommunityUserType(tbCommunityUserType) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityusertype/save`,
|
||||
data: tbCommunityUserType
|
||||
})
|
||||
}
|
||||
|
||||
updateTbCommunityUserType(tbCommunityUserType) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityusertype/update`,
|
||||
data: tbCommunityUserType
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbCommunityUserTypeByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityusertype/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbCommunityUserService extends BaseService {
|
||||
|
||||
|
||||
findTbCommunityUserById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/findTbCommunityUserById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
findTbCommunityUserList(tbCommunityUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/findList`,
|
||||
data: tbCommunityUser,
|
||||
orderBy: 'display_order asc'
|
||||
})
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
findTableTbCommunityUserList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/findTableTbCommunityUserList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
isCanAssociation(tbCommunityUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/isCanAssociation`,
|
||||
data: tbCommunityUser
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找业务员跟进的客户列表
|
||||
* @param params
|
||||
* @returns {*}
|
||||
*/
|
||||
findTableTbCommunityUserListBySalesman(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/findTableTbCommunityUserListBySalesman?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
saveTbCommunityUser(tbCommunityUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/save`,
|
||||
data: tbCommunityUser
|
||||
})
|
||||
}
|
||||
|
||||
updateTbCommunityUser(tbCommunityUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/update`,
|
||||
data: tbCommunityUser
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbCommunityUserByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置默认登录的商城
|
||||
* @param tbCommunityUser
|
||||
*/
|
||||
setDefaultTbCommunityUser(tbCommunityUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/setDefaultTbCommunityUser`,
|
||||
data: tbCommunityUser
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验扫码结果是否正确
|
||||
*/
|
||||
verifyQRCode(qrCode) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/verifyQRCode`,
|
||||
data: {qrCode: qrCode}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 访问该商城,并且将状态切换到商城
|
||||
*/
|
||||
visitTbCommunity(tbCommunityUser) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityuser/visitTbCommunity`,
|
||||
data: tbCommunityUser
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbCommunityService extends BaseService {
|
||||
|
||||
findTbCommunityList(tbCommunity) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/findList`,
|
||||
data: tbCommunity,
|
||||
orderBy: 'display_order asc'
|
||||
})
|
||||
}
|
||||
|
||||
findTbCommunityById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/findById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
findTOne(tbCommunity) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/findTOne`,
|
||||
data: tbCommunity,
|
||||
})
|
||||
}
|
||||
|
||||
saveTbCommunityAndSendMail(tbCommunity) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/saveTbCommunityAndSendMail`,
|
||||
data: tbCommunity
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 开通新商城
|
||||
* @param tbCommunity
|
||||
* @returns {*}
|
||||
*/
|
||||
openNewTbCommunity(tbCommunity) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/openNewTbCommunity`,
|
||||
data: tbCommunity
|
||||
})
|
||||
}
|
||||
|
||||
updateTbCommunity(tbCommunity) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/update`,
|
||||
data: tbCommunity
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbCommunityByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
})
|
||||
}
|
||||
|
||||
findTableCommunityMemberList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunity/findTableCommunityMemberList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbDistributorMoneyService extends BaseService {
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributormoney/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
});
|
||||
}
|
||||
|
||||
statisticTotal(tbDistributorMoney) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributormoney/statisticTotal`,
|
||||
data: tbDistributorMoney,
|
||||
});
|
||||
}
|
||||
|
||||
withdrawalToAccount(tbDistributorMoney) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributormoney/withdrawalToAccount`,
|
||||
data: tbDistributorMoney,
|
||||
});
|
||||
}
|
||||
|
||||
findTbDistributorMoneyList(tbDistributorMoney) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributormoney/findList`,
|
||||
data: tbDistributorMoney,
|
||||
orderBy: 'display_order asc'
|
||||
});
|
||||
}
|
||||
|
||||
saveTbDistributorMoney(tbDistributorMoney) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributormoney/save`,
|
||||
data: tbDistributorMoney
|
||||
});
|
||||
}
|
||||
|
||||
updateTbDistributorMoney(tbDistributorMoney) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributormoney/update`,
|
||||
data: tbDistributorMoney
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbDistributorMoneyByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributormoney/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbDistributorService extends BaseService {
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributor/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
});
|
||||
}
|
||||
|
||||
findTbDistributorList(tbDistributor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributor/findList`,
|
||||
data: tbDistributor,
|
||||
orderBy: 'display_order asc'
|
||||
});
|
||||
}
|
||||
|
||||
saveTbDistributor(tbDistributor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributor/save`,
|
||||
data: tbDistributor
|
||||
});
|
||||
}
|
||||
|
||||
setInviter(data) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributor/setInviter`,
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
updateTbDistributor(tbDistributor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributor/update`,
|
||||
data: tbDistributor
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbDistributorByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbdistributor/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbEmailPayCodeOrderService extends BaseService {
|
||||
|
||||
sendPayCode(tbEmailPayCodeOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailpaycodeorder/sendPayCode`,
|
||||
data: tbEmailPayCodeOrder
|
||||
})
|
||||
}
|
||||
|
||||
findTbEmailPayCodeOrderList(tbEmailPayCodeOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailpaycodeorder/findList`,
|
||||
data: tbEmailPayCodeOrder
|
||||
})
|
||||
}
|
||||
|
||||
saveTbEmailPayCodeOrder(tbEmailPayCodeOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailpaycodeorder/save`,
|
||||
data: tbEmailPayCodeOrder
|
||||
})
|
||||
}
|
||||
|
||||
updateTbEmailPayCodeOrder(tbEmailPayCodeOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailpaycodeorder/update`,
|
||||
data: tbEmailPayCodeOrder
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbEmailPayCodeOrderByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailpaycodeorder/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbFaqService extends BaseService {
|
||||
|
||||
findTbFaqList(tbFaq) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfaq/findTbFaqList`,
|
||||
data: tbFaq,
|
||||
orderBy: 'display_order asc'
|
||||
});
|
||||
}
|
||||
|
||||
findTbFaqDetailById(tbFaq) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfaq/findTbFaqDetailById`,
|
||||
data: tbFaq,
|
||||
});
|
||||
}
|
||||
|
||||
saveTbFaq(tbFaq) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfaq/save`,
|
||||
data: tbFaq
|
||||
});
|
||||
}
|
||||
|
||||
updateTbFaq(tbFaq) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfaq/update`,
|
||||
data: tbFaq
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbFaqByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfaq/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import {BaseService} from "../core/base/base.service";
|
||||
|
||||
export class TbFeedbackService extends BaseService {
|
||||
|
||||
findTbFeedbackTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfeedback/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableListByCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfeedback/findTableListByCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbFeedbackList(tbFeedback) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfeedback/findList`,
|
||||
data: tbFeedback,
|
||||
orderBy: 'display_order asc'
|
||||
});
|
||||
}
|
||||
|
||||
saveTbFeedback(tbFeedback) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfeedback/save`,
|
||||
data: tbFeedback
|
||||
});
|
||||
}
|
||||
|
||||
updateTbFeedback(tbFeedback) {
|
||||
const _self = this;
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfeedback/update`,
|
||||
data: tbFeedback
|
||||
});
|
||||
}
|
||||
|
||||
deleteTbFeedbackByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbfeedback/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsAfterSaleService extends BaseService {
|
||||
|
||||
findTbGoodsAfterSaleList(tbGoodsAfterSale) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsaftersale/findList`,
|
||||
data: tbGoodsAfterSale
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsAfterSale(tbGoodsAfterSale) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsaftersale/save`,
|
||||
data: tbGoodsAfterSale
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsAfterSale(tbGoodsAfterSale) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsaftersale/update`,
|
||||
data: tbGoodsAfterSale
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsAfterSaleByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsaftersale/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsClassService extends BaseService {
|
||||
|
||||
findTbGoodsClassList(tbGoodsClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsclass/findList`,
|
||||
data: tbGoodsClass
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsClassById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsclass/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsClass(tbGoodsClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsclass/save`,
|
||||
data: tbGoodsClass
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsClass(tbGoodsClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsclass/update`,
|
||||
data: tbGoodsClass
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsClassByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsclass/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbGoodsClassByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsclass/deleteTbGoodsClassByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsColorService extends BaseService {
|
||||
|
||||
findTbGoodsColorList(tbGoodsColor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscolor/findList`,
|
||||
data: tbGoodsColor
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsColor(tbGoodsColor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscolor/save`,
|
||||
data: tbGoodsColor
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsColor(tbGoodsColor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscolor/update`,
|
||||
data: tbGoodsColor
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsColorByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscolor/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsCommentService extends BaseService {
|
||||
|
||||
findTree(tbGoodsComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/findTree`,
|
||||
data: tbGoodsComment
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsCommentList(tbGoodsComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/findList`,
|
||||
data: tbGoodsComment
|
||||
})
|
||||
}
|
||||
|
||||
findTableTbGoodsCommentList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findReplyTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/findReplyTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsComment(tbGoodsComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/findTbGoodsComment`,
|
||||
data: tbGoodsComment
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsComment(tbGoodsComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/save`,
|
||||
data: tbGoodsComment
|
||||
})
|
||||
}
|
||||
|
||||
batchSaveTbGoodsComment(tbGoodsCommentList) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tbgoodscomment/batchSaveTbGoodsCommentList`,
|
||||
data: tbGoodsCommentList
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsComment(tbGoodsComment) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/update`,
|
||||
data: tbGoodsComment
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsCommentByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
addOrDelTbGoodsCommentLike(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodscomment/addOrDelTbGoodsCommentLike`,
|
||||
data: params
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsDetailAdTemplateService extends BaseService {
|
||||
|
||||
findTableTbGoodsListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/findTableTbGoodsListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsDetailAdTemplateList(tbGoodsDetailAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/findList`,
|
||||
data: tbGoodsDetailAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
findTransferTbGoodsDetailAdTemplateList(tbGoodsDetailAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/findTransferTbGoodsDetailAdTemplateList`,
|
||||
data: tbGoodsDetailAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsDetailAdTemplate(tbGoodsDetailAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/save`,
|
||||
data: tbGoodsDetailAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
batchSaveAssignedTbGoodsDetailAdTemplates(tbGoodsDetailAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/batchSaveAssignedTbGoodsDetailAdTemplates`,
|
||||
data: tbGoodsDetailAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsDetailAdTemplate(tbGoodsDetailAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/update`,
|
||||
data: tbGoodsDetailAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsDetailAdTemplateByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
batchDelAssignedTbGoodsDetailAdTemplates(goodsIds) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailadtemplate/batchDelAssignedTbGoodsDetailAdTemplates`,
|
||||
data: {goodsIds: goodsIds}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsDetailExtendService extends BaseService {
|
||||
|
||||
findTableTbGoodsListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/findTableTbGoodsListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsDetailExtendList(tbGoodsDetailExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/findList`,
|
||||
data: tbGoodsDetailExtend
|
||||
})
|
||||
}
|
||||
|
||||
findTransferTbGoodsDetailExtendList(tbGoodsDetailExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/findTransferTbGoodsDetailExtendList`,
|
||||
data: tbGoodsDetailExtend
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsDetailExtend(tbGoodsDetailExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/save`,
|
||||
data: tbGoodsDetailExtend
|
||||
})
|
||||
}
|
||||
|
||||
batchSaveAssignedTbGoodsDetailExtends(tbGoodsDetailExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/batchSaveAssignedTbGoodsDetailExtends`,
|
||||
data: tbGoodsDetailExtend
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsDetailExtend(tbGoodsDetailExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/update`,
|
||||
data: tbGoodsDetailExtend
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsDetailExtendByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
batchDelAssignedTbGoodsDetailExtends(goodsIds) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailextend/batchDelAssignedTbGoodsDetailExtends`,
|
||||
data: {goodsIds: goodsIds}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsDetailGoodsRecommendTemplateService extends BaseService {
|
||||
|
||||
findTableTbGoodsListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/findTableTbGoodsListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsDetailGoodsRecommendTemplateList(tbGoodsDetailGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/findList`,
|
||||
data: tbGoodsDetailGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
findTransferTbGoodsDetailGoodsRecommendTemplateList(tbGoodsDetailGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/findTransferTbGoodsDetailGoodsRecommendTemplateList`,
|
||||
data: tbGoodsDetailGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
findGoodsListByGoodsDetailGoodsRecommendTemplateId(tbGoodsDetailGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/findGoodsListByGoodsDetailGoodsRecommendTemplateId`,
|
||||
data: tbGoodsDetailGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsDetailGoodsRecommendTemplate(tbGoodsDetailGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/save`,
|
||||
data: tbGoodsDetailGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
batchSaveAssignedTbGoodsDetailGoodsRecommendTemplates(tbGoodsDetailGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/batchSaveAssignedTbGoodsDetailGoodsRecommendTemplates`,
|
||||
data: tbGoodsDetailGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsDetailGoodsRecommendTemplate(tbGoodsDetailGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/update`,
|
||||
data: tbGoodsDetailGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsDetailGoodsRecommendTemplateByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
batchDelAssignedTbGoodsDetailGoodsRecommendTemplates(goodsIds) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsdetailgoodsrecommendtemplate/batchDelAssignedTbGoodsDetailGoodsRecommendTemplates`,
|
||||
data: {goodsIds: goodsIds}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsRecommendService extends BaseService {
|
||||
|
||||
findTbGoodsRecommendList(tbGoodsRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsrecommend/findList`,
|
||||
data: tbGoodsRecommend,
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsRecommendListCascade(tbGoodsRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsrecommend/findTbGoodsRecommendListCascade`,
|
||||
data: tbGoodsRecommend,
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsRecommendById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsrecommend/findById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsRecommend(tbGoodsRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsrecommend/save`,
|
||||
data: tbGoodsRecommend
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsRecommend(tbGoodsRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsrecommend/update`,
|
||||
data: tbGoodsRecommend
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbGoodsRecommendById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsrecommend/deleteById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsSpecificationColorService extends BaseService {
|
||||
|
||||
findTableListCascade(tbGoodsSpecificationColor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsspecificationcolor/findTableListCascade?pageNum=1&pageSize=999999`,
|
||||
data: tbGoodsSpecificationColor
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsSpecificationColorList(tbGoodsSpecificationColor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsspecificationcolor/findList`,
|
||||
data: tbGoodsSpecificationColor
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsSpecificationColorCount(tbGoodsSpecificationColor) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsspecificationcolor/findCount`,
|
||||
data: tbGoodsSpecificationColor
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsSpecificationColor(tbGoodsSpecificationColor) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tbgoodsspecificationcolor/saveTbGoodsSpecificationColor`,
|
||||
data: tbGoodsSpecificationColor
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsSpecificationColor(tbGoodsSpecificationColor) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tbgoodsspecificationcolor/updateTbGoodsSpecificationColor`,
|
||||
data: tbGoodsSpecificationColor
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsSpecificationColorByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsspecificationcolor/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsSpecificationService extends BaseService {
|
||||
|
||||
findListCascade(tbGoodsSpecification) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsspecification/findTableListCascade?pageNum=1&pageSize=9999`,
|
||||
data: tbGoodsSpecification
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsSpecificationList(tbGoodsSpecification) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsspecification/findList`,
|
||||
data: tbGoodsSpecification
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsSpecification(tbGoodsSpecification) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tbgoodsspecification/saveTbGoodsSpecification`,
|
||||
data: tbGoodsSpecification
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsSpecification(tbGoodsSpecification) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tbgoodsspecification/updateTbGoodsSpecification`,
|
||||
data: tbGoodsSpecification
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsSpecificationByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodsspecification/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsTitleExtendService extends BaseService {
|
||||
|
||||
findTableTbGoodsListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/findTableTbGoodsListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbGoodsTitleExtendList(tbGoodsTitleExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/findList`,
|
||||
data: tbGoodsTitleExtend
|
||||
})
|
||||
}
|
||||
|
||||
findTransferTbGoodsTitleExtendList(tbGoodsTitleExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/findTransferTbGoodsTitleExtendList`,
|
||||
data: tbGoodsTitleExtend
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoodsTitleExtend(tbGoodsTitleExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/save`,
|
||||
data: tbGoodsTitleExtend
|
||||
})
|
||||
}
|
||||
|
||||
batchSaveAssignedTbGoodsTitleExtends(tbGoodsTitleExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/batchSaveAssignedTbGoodsTitleExtends`,
|
||||
data: tbGoodsTitleExtend
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoodsTitleExtend(tbGoodsTitleExtend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/update`,
|
||||
data: tbGoodsTitleExtend
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsTitleExtendByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
batchDelAssignedTbGoodsTitleExtends(goodsIds) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoodstitleextend/batchDelAssignedTbGoodsTitleExtends`,
|
||||
data: {goodsIds: goodsIds}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbGoodsService extends BaseService {
|
||||
|
||||
findList(tbGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findList`,
|
||||
data: tbGoods
|
||||
})
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
isOptimizeData: params.isOptimizeData
|
||||
})
|
||||
}
|
||||
|
||||
findTableListByStore(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findTableListByStore?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
isOptimizeData: params.isOptimizeData
|
||||
})
|
||||
}
|
||||
|
||||
findTableListByConsumer(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findTableListByConsumer?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableListByLucene(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findTableListByLucene?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findGoodsDetail(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findGoodsDetail`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findGoodsById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
isValidGoods(tbGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/isValidGoods`,
|
||||
data: tbGoods
|
||||
})
|
||||
}
|
||||
|
||||
saveTbGoods(tbGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/save`,
|
||||
data: tbGoods
|
||||
})
|
||||
}
|
||||
|
||||
updateTbGoods(tbGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/update`,
|
||||
data: tbGoods
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbGoodsByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbgoods/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbLogisticsCompanyService extends BaseService {
|
||||
|
||||
findTbLogisticsCompanyList(tbLogisticsCompany) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticscompany/findList`,
|
||||
data: tbLogisticsCompany
|
||||
})
|
||||
}
|
||||
|
||||
findTableTbLogisticsCompanyList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticscompany/findTableList?${params.pagination.appendToUrl(null, 20)}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
saveTbLogisticsCompany(tbLogisticsCompany) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticscompany/save`,
|
||||
data: tbLogisticsCompany
|
||||
})
|
||||
}
|
||||
|
||||
updateTbLogisticsCompany(tbLogisticsCompany) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticscompany/update`,
|
||||
data: tbLogisticsCompany
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbLogisticsCompanyByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticscompany/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbOrderCouponService extends BaseService {
|
||||
|
||||
findTableTbOrderCouponList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordercoupon/findTableTbOrderCouponList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbOrderCouponList(tbOrderCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordercoupon/findList`,
|
||||
data: tbOrderCoupon,
|
||||
orderBy: 'display_order asc'
|
||||
})
|
||||
}
|
||||
|
||||
saveTbOrderCoupon(tbOrderCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordercoupon/saveTbOrderCoupon`,
|
||||
data: tbOrderCoupon
|
||||
})
|
||||
}
|
||||
|
||||
updateTbOrderCoupon(tbOrderCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordercoupon/update`,
|
||||
data: tbOrderCoupon
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbOrderCouponByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordercoupon/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbOrderGoodsAfterSaleService extends BaseService {
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoodsaftersale/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
findTbOrderGoodsAfterSaleById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoodsaftersale/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveTbOrderGoodsAfterSale(tbOrderGoodsAfterSale) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoodsaftersale/saveTbOrderGoodsAfterSale`,
|
||||
data: tbOrderGoodsAfterSale
|
||||
})
|
||||
}
|
||||
|
||||
updateTbOrderGoodsAfterSale(tbOrderGoodsAfterSale) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoodsaftersale/updateTbOrderGoodsAfterSale`,
|
||||
data: tbOrderGoodsAfterSale
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbOrderGoodsAfterSaleByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoodsaftersale/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbOrderGoodsService extends BaseService {
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoods/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
findTbOrderGoodsById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoods/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveTbOrderGoods(tbOrderGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoods/save`,
|
||||
data: tbOrderGoods
|
||||
})
|
||||
}
|
||||
|
||||
updateTbOrderGoods(tbOrderGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoods/update`,
|
||||
data: tbOrderGoods
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbOrderGoodsByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbordergoods/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbLogisticsTracesService extends BaseService {
|
||||
|
||||
findTbLogisticsTracesList(tbLogisticsTraces) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticstraces/findList`,
|
||||
data: tbLogisticsTraces
|
||||
})
|
||||
}
|
||||
|
||||
findTbLogisticsTracesById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticstraces/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveTbLogisticsTraces(tbLogisticsTraces) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticstraces/save`,
|
||||
data: tbLogisticsTraces
|
||||
})
|
||||
}
|
||||
|
||||
updateTbLogisticsTraces(tbLogisticsTraces) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticstraces/update`,
|
||||
data: tbLogisticsTraces
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbLogisticsTracesByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tblogisticstraces/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbOrderService extends BaseService {
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableListCascadeByGoodsAfterSaleApply(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/findTableListCascadeByGoodsAfterSaleApply?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbOrderList(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/findListCascade`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
findTbOrderById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findCount(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/findCount`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
prepareTbOrder(tbOrder) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tborder/prepareTbOrder`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
saveTbOrder(tbOrder) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tborder/saveTbOrder`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
updateTbOrder(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/update`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新订单是否可以操作
|
||||
* @param tbOrder
|
||||
*/
|
||||
static updateEnableOperation(tbOrder) {
|
||||
let enable = false;
|
||||
if (tbOrder.saleMode === "0") { // 物流订单
|
||||
if (tbOrder.status === "0") {
|
||||
enable = true;
|
||||
} else if (tbOrder.status === "1" && tbOrder.tbStore != null && tbOrder.tbStore.isSupportRefund) {
|
||||
enable = true;
|
||||
} else if (",3,4,".indexOf(tbOrder.status) !== -1 && !tbOrder.isComment) {
|
||||
enable = true;
|
||||
}
|
||||
} else if (tbOrder.saleMode === "1") { // 消费券订单
|
||||
if (tbOrder.status === "0") {
|
||||
enable = true;
|
||||
} else if (tbOrder.status === "1" && tbOrder.tbStore != null && tbOrder.tbStore.isSupportRefund) {
|
||||
enable = true;
|
||||
} else if (tbOrder.status === "4" && !tbOrder.isComment) {
|
||||
enable = true;
|
||||
}
|
||||
} else if (tbOrder.saleMode === "2") { // 餐饮订单
|
||||
if (tbOrder.status === "0") {
|
||||
enable = true;
|
||||
} else if (tbOrder.status === "1" && tbOrder.tbStore != null && tbOrder.tbStore.isSupportRefund) {
|
||||
enable = true;
|
||||
} else if (tbOrder.status === "4" && !tbOrder.isComment) {
|
||||
enable = true;
|
||||
}
|
||||
}
|
||||
tbOrder.enableOperation = enable;
|
||||
}
|
||||
|
||||
batchDeleteTbOrderByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新订单状态
|
||||
* @param tbOrder
|
||||
*/
|
||||
updateStatus(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/updateStatus`,
|
||||
data: tbOrder,
|
||||
isOptimizeData: true
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 线下支付
|
||||
*/
|
||||
offlinePay(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/offlinePay`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验消费券号是否正确
|
||||
*/
|
||||
validConsumerVoucher(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/validConsumerVoucher`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加卖家备注
|
||||
*/
|
||||
addSellerRemark(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/addSellerRemark`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 卖家手动执行商品订单资金回笼
|
||||
*/
|
||||
transferMoneyToSeller(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/transferMoneyToSeller`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新收货地址
|
||||
*/
|
||||
updateShippingAddress(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/updateShippingAddress`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新物流信息
|
||||
*/
|
||||
updateLogisticsInfo(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tborder/updateLogisticsInfo`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbSeckillGoodsService extends BaseService {
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
isOptimizeData: params.isOptimizeData
|
||||
})
|
||||
}
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableListByConsumer(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/findTableListByConsumer?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableListByStore(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/findTableListByStore?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbSeckillGoodsCount(tbSeckillGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/findCount`,
|
||||
data: tbSeckillGoods
|
||||
})
|
||||
}
|
||||
|
||||
seckillGoods(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/seckillGoods`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findSeckillResult(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/findSeckillResult`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveTbSeckillGoods(tbSeckillGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/save`,
|
||||
data: tbSeckillGoods
|
||||
})
|
||||
}
|
||||
|
||||
updateTbSeckillGoods(tbSeckillGoods) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/update`,
|
||||
data: tbSeckillGoods
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbSeckillGoodsByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillgoods/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbSeckillOrderService extends BaseService {
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillorder/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbSeckillOrderList(tbSeckillOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillorder/findListCascade`,
|
||||
data: tbSeckillOrder
|
||||
})
|
||||
}
|
||||
|
||||
findTbSeckillOrderById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillorder/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findCount(tbOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillorder/findCount`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
saveTbSeckillOrder(tbSeckillOrder) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tbseckillorder/saveTbOrder`,
|
||||
data: tbSeckillOrder
|
||||
})
|
||||
}
|
||||
|
||||
updateTbSeckillOrder(tbSeckillOrder) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillorder/update`,
|
||||
data: tbSeckillOrder
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbSeckillOrderByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbseckillorder/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbShippingAddressService extends BaseService {
|
||||
findTbShippingAddressList (tbShippingAddress) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshippingaddress/findList`,
|
||||
data: tbShippingAddress
|
||||
})
|
||||
}
|
||||
|
||||
findTbShippingAddressById (id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshippingaddress/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveTbShippingAddress (tbShippingAddress) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshippingaddress/save`,
|
||||
data: tbShippingAddress
|
||||
})
|
||||
}
|
||||
|
||||
updateTbShippingAddress (tbShippingAddress) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshippingaddress/update`,
|
||||
data: tbShippingAddress
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbShippingAddressByIds (ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshippingaddress/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
setDefaultTbShippingAddress (tbShippingAddress) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshippingaddress/setDefaultTbShippingAddress`,
|
||||
data: {
|
||||
id: tbShippingAddress.id,
|
||||
userId: this.globalVariable.userInfo.id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户默认收货地址
|
||||
* @returns {any}
|
||||
*/
|
||||
findDefaultTbShippingAddress () {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshippingaddress/findDefaultTbShippingAddress`,
|
||||
data: {
|
||||
userId: this.globalVariable.userInfo.id,
|
||||
isDefault: true
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbShoppingCartService extends BaseService {
|
||||
|
||||
findTbShoppingCartCount(tbShoppingCart) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshoppingcart/findCount`,
|
||||
data: tbShoppingCart
|
||||
})
|
||||
}
|
||||
|
||||
findTbShoppingCartList(tbShoppingCart) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshoppingcart/findListCascade`,
|
||||
data: tbShoppingCart
|
||||
})
|
||||
}
|
||||
|
||||
saveTbShoppingCart(tbShoppingCart) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshoppingcart/saveTbShoppingCart`,
|
||||
data: tbShoppingCart
|
||||
})
|
||||
}
|
||||
|
||||
updateTbShoppingCart(tbShoppingCart) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshoppingcart/update`,
|
||||
data: tbShoppingCart
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbShoppingCartByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbshoppingcart/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreAdTemplateService extends BaseService {
|
||||
|
||||
findListCascade(tbStoreAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreadtemplate/findListCascade`,
|
||||
data: tbStoreAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreAdTemplateList(tbStoreAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreadtemplate/findList`,
|
||||
data: tbStoreAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreAdTemplate(tbStoreAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreadtemplate/save`,
|
||||
data: tbStoreAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
updateAssociatedStore(tbStoreAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreadtemplate/updateAssociatedStore`,
|
||||
data: tbStoreAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreAdTemplate(tbStoreAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreadtemplate/update`,
|
||||
data: tbStoreAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbStoreAdTemplateByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreadtemplate/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreCashDepositDeductionRecordService extends BaseService {
|
||||
|
||||
findTbStoreCashDepositDeductionRecordList(tbStoreCashDepositDeductionRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositdeductionrecord/findList`,
|
||||
data: tbStoreCashDepositDeductionRecord
|
||||
});
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositdeductionrecord/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
});
|
||||
}
|
||||
|
||||
findTableTbStoreCashDepositDeductionRecordList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositdeductionrecord/findTableTbStoreCashDepositDeductionRecordList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
});
|
||||
}
|
||||
|
||||
saveTbStoreCashDepositDeductionRecord(tbStoreCashDepositDeductionRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositdeductionrecord/save`,
|
||||
data: tbStoreCashDepositDeductionRecord
|
||||
});
|
||||
}
|
||||
|
||||
updateTbStoreCashDepositDeductionRecord(tbStoreCashDepositDeductionRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositdeductionrecord/update`,
|
||||
data: tbStoreCashDepositDeductionRecord
|
||||
});
|
||||
}
|
||||
|
||||
findTbStoreCashDepositDeductionRecordById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositdeductionrecord/findById`,
|
||||
data: {id: id}
|
||||
});
|
||||
}
|
||||
|
||||
findOne(tbStoreCashDepositDeductionRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositdeductionrecord/findOne`,
|
||||
data: tbStoreCashDepositDeductionRecord
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreCashDepositRechargeRecordService extends BaseService {
|
||||
|
||||
findTbStoreCashDepositRechargeRecordList(tbStoreCashDepositRechargeRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositrechargerecord/findList`,
|
||||
data: tbStoreCashDepositRechargeRecord
|
||||
})
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositrechargerecord/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableTbStoreCashDepositRechargeRecordList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositrechargerecord/findTableTbStoreCashDepositRechargeRecordList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreCashDepositRechargeRecord(tbStoreCashDepositRechargeRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositrechargerecord/save`,
|
||||
data: tbStoreCashDepositRechargeRecord
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreCashDepositRechargeRecord(tbStoreCashDepositRechargeRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositrechargerecord/update`,
|
||||
data: tbStoreCashDepositRechargeRecord
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreCashDepositRechargeRecordById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositrechargerecord/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findOne(tbStoreCashDepositRechargeRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositrechargerecord/findOne`,
|
||||
data: tbStoreCashDepositRechargeRecord
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreCashDepositWithdrawalRecordService extends BaseService {
|
||||
|
||||
findTbStoreCashDepositWithdrawalRecordList(tbStoreCashDepositWithdrawalRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/findList`,
|
||||
data: tbStoreCashDepositWithdrawalRecord
|
||||
})
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableTbStoreCashDepositWithdrawalRecordList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/findTableTbStoreCashDepositWithdrawalRecordList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreCashDepositWithdrawalRecord(tbStoreCashDepositWithdrawalRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/save`,
|
||||
data: tbStoreCashDepositWithdrawalRecord
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreCashDepositWithdrawalRecord(tbStoreCashDepositWithdrawalRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/update`,
|
||||
data: tbStoreCashDepositWithdrawalRecord
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreCashDepositWithdrawalRecordById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findOne(tbStoreCashDepositWithdrawalRecord) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/findOne`,
|
||||
data: tbStoreCashDepositWithdrawalRecord
|
||||
})
|
||||
}
|
||||
|
||||
withdrawalToAccount() {
|
||||
const _self = this;
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecashdepositwithdrawalrecord/withdrawalToAccount`,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreClassService extends BaseService {
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreClassList(tbStoreClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/findTbStoreClassList`,
|
||||
data: tbStoreClass
|
||||
})
|
||||
}
|
||||
|
||||
findList(tbStoreClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/findList`,
|
||||
data: tbStoreClass
|
||||
})
|
||||
}
|
||||
|
||||
findMenu(tbStoreClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/findMenu`,
|
||||
data: tbStoreClass
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreClassTree(tbStoreClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/findTree`,
|
||||
data: tbStoreClass
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreClass(tbStoreClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/save`,
|
||||
data: tbStoreClass
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreClass(tbStoreClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/update`,
|
||||
data: tbStoreClass
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStoreClass(tbStoreClass) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreclass/deleteByIdCascade`,
|
||||
data: {id: tbStoreClass.id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreCouponService extends BaseService {
|
||||
findTbStoreCouponList (tbStoreCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecoupon/findList`,
|
||||
data: tbStoreCoupon,
|
||||
orderBy: 'display_order asc'
|
||||
})
|
||||
}
|
||||
|
||||
findValidTbStoreCouponList (tbStoreCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecoupon/findValidTbStoreCouponList`,
|
||||
data: tbStoreCoupon,
|
||||
orderBy: 'display_order asc'
|
||||
})
|
||||
}
|
||||
|
||||
validCouponCount (tbStoreCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecoupon/validCouponCount`,
|
||||
data: tbStoreCoupon
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreCoupon (tbStoreCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecoupon/save`,
|
||||
data: tbStoreCoupon
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreCoupon (tbStoreCoupon) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecoupon/update`,
|
||||
data: tbStoreCoupon
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStoreCouponByIds (ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorecoupon/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreGoodsRecommendTemplateService extends BaseService {
|
||||
|
||||
findListCascade(tbStoreAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoregoodsrecommendtemplate/findListCascade`,
|
||||
data: tbStoreAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreGoodsRecommendTemplateList(tbStoreGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoregoodsrecommendtemplate/findList`,
|
||||
data: tbStoreGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreGoodsRecommendTemplate(tbStoreGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoregoodsrecommendtemplate/save`,
|
||||
data: tbStoreGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
updateAssociatedStore(tbStoreAdTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoregoodsrecommendtemplate/updateAssociatedStore`,
|
||||
data: tbStoreAdTemplate
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreGoodsRecommendTemplate(tbStoreGoodsRecommendTemplate) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoregoodsrecommendtemplate/update`,
|
||||
data: tbStoreGoodsRecommendTemplate
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbStoreGoodsRecommendTemplateByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoregoodsrecommendtemplate/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreOrderSequenceNumberService extends BaseService {
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreordersequencenumber/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data,
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreOrderSequenceNumberList(tbStoreOrderSequenceNumber) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreordersequencenumber/findList`,
|
||||
data: tbStoreOrderSequenceNumber,
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreOrderSequenceNumber(tbStoreOrderSequenceNumber) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreordersequencenumber/save`,
|
||||
data: tbStoreOrderSequenceNumber
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreOrderSequenceNumber(tbStoreOrderSequenceNumber) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreordersequencenumber/update`,
|
||||
data: tbStoreOrderSequenceNumber
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStoreOrderSequenceNumber(tbStoreOrderSequenceNumber) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstoreordersequencenumber/deleteById`,
|
||||
data: {id: tbStoreOrderSequenceNumber.id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStorePresentService extends BaseService {
|
||||
|
||||
findTbStorePresentList(tbStorePresent) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepresent/findList`,
|
||||
data: tbStorePresent,
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStorePresent(tbStorePresent) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepresent/save`,
|
||||
data: tbStorePresent
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStorePresent(tbStorePresent) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepresent/update`,
|
||||
data: tbStorePresent
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStorePresentByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepresent/deleteByIds`,
|
||||
data: {ids: ids}
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStorePresent(tbStorePresent) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepresent/deleteByIdCascade`,
|
||||
data: {id: tbStorePresent.id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStorePromotionService extends BaseService {
|
||||
|
||||
findTableTbStorePromotionList(tbStorePromotion) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/findTableTbStorePromotionList?pageNum=1&pageSize=9999`,
|
||||
data: tbStorePromotion
|
||||
})
|
||||
}
|
||||
|
||||
findTbStorePromotionList(tbStorePromotion) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/findList`,
|
||||
data: tbStorePromotion
|
||||
})
|
||||
}
|
||||
|
||||
findTbOrderGoodsPromotionItem(tbStorePromotion) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/findTbOrderGoodsPromotionItem`,
|
||||
data: tbStorePromotion
|
||||
})
|
||||
}
|
||||
|
||||
findTbOrderPromotion(tbOrder) {
|
||||
return this.httpUtil.myPostJson({
|
||||
url: `tbstorepromotion/findTbOrderPromotion`,
|
||||
data: tbOrder
|
||||
})
|
||||
}
|
||||
|
||||
findTbStorePromotionById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findTbStorePromotionByIdCascade(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/findTbStorePromotionByIdCascade`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStorePromotion(tbStorePromotion) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/save`,
|
||||
data: tbStorePromotion,
|
||||
isOptimizeData: true
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStorePromotion(tbStorePromotion) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/update`,
|
||||
data: tbStorePromotion,
|
||||
isOptimizeData: true
|
||||
})
|
||||
}
|
||||
|
||||
batchDeleteTbStorePromotionByIds(ids) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/deleteByIds`,
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStorePromotion(tbStorePromotion) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/deleteByIdCascade`,
|
||||
data: {id: tbStorePromotion.id}
|
||||
})
|
||||
}
|
||||
|
||||
canEnable(tbStorePromotion) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorepromotion/canEnable`,
|
||||
data: tbStorePromotion
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreRecommendService extends BaseService {
|
||||
|
||||
findTbStoreRecommendList(tbStoreRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorerecommend/findList`,
|
||||
data: tbStoreRecommend,
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreRecommendListCascade(tbStoreRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorerecommend/findTbStoreRecommendListCascade`,
|
||||
data: tbStoreRecommend,
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreRecommendById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorerecommend/findById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStoreRecommend(tbStoreRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorerecommend/save`,
|
||||
data: tbStoreRecommend
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStoreRecommend(tbStoreRecommend) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorerecommend/update`,
|
||||
data: tbStoreRecommend
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbStoreRecommendById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstorerecommend/deleteById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbCommunityHomeConfigService extends BaseService {
|
||||
|
||||
findTbCommunityHomeConfigList(tbCommunityHomeConfig) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityhomeconfig/findList`,
|
||||
data: tbCommunityHomeConfig,
|
||||
})
|
||||
}
|
||||
|
||||
findTbCommunityHomeConfigByCommunityId(communityId) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityhomeconfig/findTbCommunityHomeConfigByCommunityId`,
|
||||
data: {communityId: communityId},
|
||||
})
|
||||
}
|
||||
|
||||
findTbCommunityHomeConfigById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityhomeconfig/findById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
saveTbCommunityHomeConfig(tbCommunityHomeConfig) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityhomeconfig/save`,
|
||||
data: tbCommunityHomeConfig
|
||||
})
|
||||
}
|
||||
|
||||
updateTbCommunityHomeConfig(tbCommunityHomeConfig) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityhomeconfig/update`,
|
||||
data: tbCommunityHomeConfig
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbCommunityHomeConfigById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbcommunityhomeconfig/deleteById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbStoreService extends BaseService {
|
||||
|
||||
findTbStoreList(tbStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findList`,
|
||||
data: tbStore
|
||||
})
|
||||
}
|
||||
|
||||
findTableList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findTableList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableListCascade(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findTableListCascade?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableTbStoreList(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findTableTbStoreList?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
findTableTbStoreListByConsumer(params) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findTableTbStoreListByConsumer?${params.pagination.appendToUrl()}`,
|
||||
data: params.data
|
||||
})
|
||||
}
|
||||
|
||||
saveTbStore(tbStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/save`,
|
||||
data: tbStore
|
||||
})
|
||||
}
|
||||
|
||||
updateTbStore(tbStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/update`,
|
||||
data: tbStore
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
|
||||
findTbStoreByUserId(userId) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findTbStoreByUserId`,
|
||||
data: {userId: userId}
|
||||
})
|
||||
}
|
||||
|
||||
findOne(tbStore) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbstore/findOne`,
|
||||
data: tbStore
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbWxSubscribeMessageService extends BaseService {
|
||||
|
||||
findTbWxSubscribeMessageList(tbWxSubscribeMessage) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbwxsubscribemessage/findList`,
|
||||
data: tbWxSubscribeMessage,
|
||||
})
|
||||
}
|
||||
|
||||
findTbWxSubscribeMessageById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbwxsubscribemessage/findById`,
|
||||
data: {id: id},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订阅数量
|
||||
* @param tbWxSubscribeMessage
|
||||
* @returns {*}
|
||||
*/
|
||||
findTbWxSubscribeMessageCount(tbWxSubscribeMessage) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbwxsubscribemessage/findCount`,
|
||||
data: tbWxSubscribeMessage,
|
||||
})
|
||||
}
|
||||
|
||||
saveTbWxSubscribeMessage(tbWxSubscribeMessage) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbwxsubscribemessage/save`,
|
||||
data: tbWxSubscribeMessage
|
||||
})
|
||||
}
|
||||
|
||||
updateTbWxSubscribeMessage(tbWxSubscribeMessage) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbwxsubscribemessage/update`,
|
||||
data: tbWxSubscribeMessage
|
||||
})
|
||||
}
|
||||
|
||||
deleteTbWxSubscribeMessageById(id) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbwxsubscribemessage/deleteById`,
|
||||
data: {id: id}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
|
||||
export class TbEmailIdentifyingCodeService extends BaseService {
|
||||
|
||||
sendMailIdentifyingCode(email) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailidentifyingcode/sendMailIdentifyingCode`,
|
||||
data: {email: email}
|
||||
})
|
||||
}
|
||||
|
||||
sendMailIdentifyingCodeByUsername(username) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailidentifyingcode/sendMailIdentifyingCodeByUsername`,
|
||||
data: {username: username}
|
||||
})
|
||||
}
|
||||
|
||||
mailIdentifyingCodeCheck(email, identifyingCode) {
|
||||
return this.httpUtil.myPost({
|
||||
url: `tbemailidentifyingcode/mailIdentifyingCodeCheck`,
|
||||
data: {
|
||||
email: email,
|
||||
identifyingCode: identifyingCode
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
import {BaseService} from '../core/base/base.service'
|
||||
import globalVariable from "../core/global-variable";
|
||||
|
||||
export class WechatService extends BaseService {
|
||||
|
||||
/**
|
||||
* 通过微信小程序code获得unionid
|
||||
* {data: "unionid"}
|
||||
*/
|
||||
findUnionidByWeixinMiniAppCode() {
|
||||
const _self = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
uni.login({
|
||||
success: (loginResult) => { // {errMsg: "login:ok", code: "0434TeKg2bXv6H0s6YMg2017Kg24TeK-"}
|
||||
console.log("uni.login-----------------------------------------", loginResult);
|
||||
if (loginResult && loginResult.code) {
|
||||
_self.httpUtil.myPost({
|
||||
url: 'wechat/findUnionidByWeixinMiniAppCode',
|
||||
data: {
|
||||
code: loginResult.code
|
||||
}
|
||||
}).then(result => {
|
||||
resolve(result);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过微信APP应用code获得unionid
|
||||
* {data: "unionid"}
|
||||
*/
|
||||
findUnionidByWeixinAppCode() {
|
||||
const _self = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: (loginResult) => { // {errMsg: "login:ok", code: "0434TeKg2bXv6H0s6YMg2017Kg24TeK-"}
|
||||
console.log("uni.login-----------------------------------------", loginResult);
|
||||
/*
|
||||
loginResult =
|
||||
{
|
||||
"authResult": {
|
||||
"access_token": "39_4qY3FkHNgBi3I4wcSW8oa3J0qgW2lwDXyDXWwxR1wzE72P-hwRuwBdTLLC5J317xtXf8higrxdlK3FDf4geRsayokLxKq-yA907d1xZCbBA",
|
||||
"expires_in": 7200,
|
||||
"refresh_token": "39_2hgRgy87wnjhQOzZ5DPUBnac7Te17i1mFBqyKBpwFvq2pzVhnjwIBThwLXHcLVoaVnA6PzMFZJTGm6ee4YxFpqhhjnC7OeqIHp1OD1O8jlk",
|
||||
"openid": "oRrdQt3fvaYOXfeXLPOPdUvUYy1Y",
|
||||
"scope": "snsapi_userinfo",
|
||||
"unionid": "oU5Yyt8rwqDaowkhJyuzmYY-UUeo" // todo 有时获取不到unionid
|
||||
},
|
||||
"errMsg": "login:ok"
|
||||
}
|
||||
*/
|
||||
if (loginResult && loginResult.authResult && loginResult.authResult.openid && loginResult.authResult.unionid) {
|
||||
_self.httpUtil.myPost({
|
||||
url: 'wechat/saveOpenidAndUnionidByWeixinApp',
|
||||
data: {
|
||||
openid: loginResult.authResult.openid,
|
||||
unionid: loginResult.authResult.unionid,
|
||||
}
|
||||
}).then(result => {
|
||||
resolve(result);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据code获得Unionid
|
||||
*/
|
||||
findUnionidByCode() {
|
||||
if (globalVariable.runPlatform === "0") {
|
||||
return this.findUnionidByWeixinMiniAppCode();
|
||||
} else if (globalVariable.runPlatform === "1") {
|
||||
return this.findUnionidByWeixinAppCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user