微信参数配置
parent
0ee579595b
commit
f9662eab18
@ -0,0 +1,61 @@
|
|||||||
|
package com.flossom.hzMapper.mapper;
|
||||||
|
|
||||||
|
import com.flossom.common.core.domain.entity.WxParameterSetting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 微信参数配属Mapper接口
|
||||||
|
*
|
||||||
|
* @author flossom
|
||||||
|
* @date 2023-12-13
|
||||||
|
*/
|
||||||
|
public interface WxParameterSettingMapper {
|
||||||
|
/**
|
||||||
|
* 查询微信参数配属
|
||||||
|
*
|
||||||
|
* @param id 微信参数配属主键
|
||||||
|
* @return 微信参数配属
|
||||||
|
*/
|
||||||
|
public WxParameterSetting selectWxParameterSettingById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询微信参数配属列表
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 微信参数配属集合
|
||||||
|
*/
|
||||||
|
public List<WxParameterSetting> selectWxParameterSettingList(WxParameterSetting wxParameterSetting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增微信参数配属
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertWxParameterSetting(WxParameterSetting wxParameterSetting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改微信参数配属
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateWxParameterSetting(WxParameterSetting wxParameterSetting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除微信参数配属
|
||||||
|
*
|
||||||
|
* @param id 微信参数配属主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWxParameterSettingById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除微信参数配属
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWxParameterSettingByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,133 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.flossom.hzMapper.mapper.WxParameterSettingMapper">
|
||||||
|
|
||||||
|
<resultMap type="WxParameterSetting" id="WxParameterSettingResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="appid" column="appid" />
|
||||||
|
<result property="appkey" column="appkey" />
|
||||||
|
<result property="merchantId" column="merchant_id" />
|
||||||
|
<result property="merchantApiKey" column="merchant_api_key" />
|
||||||
|
<result property="openKey" column="open_key" />
|
||||||
|
<result property="openSecret" column="open_secret" />
|
||||||
|
<result property="bindingIp" column="binding_ip" />
|
||||||
|
<result property="syKey" column="sy_key" />
|
||||||
|
<result property="sySecret" column="sy_secret" />
|
||||||
|
<result property="syUrl" column="sy_url" />
|
||||||
|
<result property="syShopId" column="sy_shop_id" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectWxParameterSettingVo">
|
||||||
|
select id, appid, appkey, merchant_id, merchant_api_key, open_key, open_secret, binding_ip, sy_key, sy_secret, sy_url, sy_shop_id, status, create_by, create_time, update_by, update_time, remark from wx_parameter_setting
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectWxParameterSettingList" parameterType="WxParameterSetting" resultMap="WxParameterSettingResult">
|
||||||
|
<include refid="selectWxParameterSettingVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="appid != null and appid != ''"> and appid = #{appid}</if>
|
||||||
|
<if test="appkey != null and appkey != ''"> and appkey = #{appkey}</if>
|
||||||
|
<if test="merchantId != null and merchantId != ''"> and merchant_id = #{merchantId}</if>
|
||||||
|
<if test="merchantApiKey != null and merchantApiKey != ''"> and merchant_api_key = #{merchantApiKey}</if>
|
||||||
|
<if test="openKey != null and openKey != ''"> and open_key = #{openKey}</if>
|
||||||
|
<if test="openSecret != null and openSecret != ''"> and open_secret = #{openSecret}</if>
|
||||||
|
<if test="bindingIp != null and bindingIp != ''"> and binding_ip = #{bindingIp}</if>
|
||||||
|
<if test="syKey != null and syKey != ''"> and sy_key = #{syKey}</if>
|
||||||
|
<if test="sySecret != null and sySecret != ''"> and sy_secret = #{sySecret}</if>
|
||||||
|
<if test="syUrl != null and syUrl != ''"> and sy_url = #{syUrl}</if>
|
||||||
|
<if test="syShopId != null and syShopId != ''"> and sy_shop_id = #{syShopId}</if>
|
||||||
|
<if test="status != null "> and status = #{status}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectWxParameterSettingById" parameterType="Long" resultMap="WxParameterSettingResult">
|
||||||
|
<include refid="selectWxParameterSettingVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertWxParameterSetting" parameterType="WxParameterSetting">
|
||||||
|
insert into wx_parameter_setting
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="appid != null">appid,</if>
|
||||||
|
<if test="appkey != null">appkey,</if>
|
||||||
|
<if test="merchantId != null">merchant_id,</if>
|
||||||
|
<if test="merchantApiKey != null">merchant_api_key,</if>
|
||||||
|
<if test="openKey != null">open_key,</if>
|
||||||
|
<if test="openSecret != null">open_secret,</if>
|
||||||
|
<if test="bindingIp != null">binding_ip,</if>
|
||||||
|
<if test="syKey != null">sy_key,</if>
|
||||||
|
<if test="sySecret != null">sy_secret,</if>
|
||||||
|
<if test="syUrl != null">sy_url,</if>
|
||||||
|
<if test="syShopId != null">sy_shop_id,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="appid != null">#{appid},</if>
|
||||||
|
<if test="appkey != null">#{appkey},</if>
|
||||||
|
<if test="merchantId != null">#{merchantId},</if>
|
||||||
|
<if test="merchantApiKey != null">#{merchantApiKey},</if>
|
||||||
|
<if test="openKey != null">#{openKey},</if>
|
||||||
|
<if test="openSecret != null">#{openSecret},</if>
|
||||||
|
<if test="bindingIp != null">#{bindingIp},</if>
|
||||||
|
<if test="syKey != null">#{syKey},</if>
|
||||||
|
<if test="sySecret != null">#{sySecret},</if>
|
||||||
|
<if test="syUrl != null">#{syUrl},</if>
|
||||||
|
<if test="syShopId != null">#{syShopId},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateWxParameterSetting" parameterType="WxParameterSetting">
|
||||||
|
update wx_parameter_setting
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="appid != null">appid = #{appid},</if>
|
||||||
|
<if test="appkey != null">appkey = #{appkey},</if>
|
||||||
|
<if test="merchantId != null">merchant_id = #{merchantId},</if>
|
||||||
|
<if test="merchantApiKey != null">merchant_api_key = #{merchantApiKey},</if>
|
||||||
|
<if test="openKey != null">open_key = #{openKey},</if>
|
||||||
|
<if test="openSecret != null">open_secret = #{openSecret},</if>
|
||||||
|
<if test="bindingIp != null">binding_ip = #{bindingIp},</if>
|
||||||
|
<if test="syKey != null">sy_key = #{syKey},</if>
|
||||||
|
<if test="sySecret != null">sy_secret = #{sySecret},</if>
|
||||||
|
<if test="syUrl != null">sy_url = #{syUrl},</if>
|
||||||
|
<if test="syShopId != null">sy_shop_id = #{syShopId},</if>
|
||||||
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteWxParameterSettingById" parameterType="Long">
|
||||||
|
delete from wx_parameter_setting where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteWxParameterSettingByIds" parameterType="String">
|
||||||
|
delete from wx_parameter_setting where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,99 @@
|
|||||||
|
package com.flossom.system.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import com.flossom.common.core.domain.entity.WxParameterSetting;
|
||||||
|
import com.flossom.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.flossom.common.core.web.controller.BaseController;
|
||||||
|
import com.flossom.common.core.web.domain.AjaxResult;
|
||||||
|
import com.flossom.common.core.web.page.TableDataInfo;
|
||||||
|
import com.flossom.common.log.annotation.Log;
|
||||||
|
import com.flossom.common.log.enums.BusinessType;
|
||||||
|
import com.flossom.common.security.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.flossom.system.service.IWxParameterSettingService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 微信参数配属Controller
|
||||||
|
*
|
||||||
|
* @author flossom
|
||||||
|
* @date 2023-12-13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/wxSetting")
|
||||||
|
public class WxParameterSettingController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private IWxParameterSettingService wxParameterSettingService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询微信参数配属列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:wxSetting:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(WxParameterSetting wxParameterSetting) {
|
||||||
|
startPage();
|
||||||
|
List<WxParameterSetting> list = wxParameterSettingService.selectWxParameterSettingList(wxParameterSetting);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出微信参数配属列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:wxSetting:export")
|
||||||
|
@Log(title = "微信参数配属", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, WxParameterSetting wxParameterSetting) {
|
||||||
|
List<WxParameterSetting> list = wxParameterSettingService.selectWxParameterSettingList(wxParameterSetting);
|
||||||
|
ExcelUtil<WxParameterSetting> util = new ExcelUtil<WxParameterSetting>(WxParameterSetting.class);
|
||||||
|
util.exportExcel(response, list, "微信参数配属数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取微信参数配属详细信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:wxSetting:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
|
return success(wxParameterSettingService.selectWxParameterSettingById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增微信参数配属
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:wxSetting:add")
|
||||||
|
@Log(title = "微信参数配属", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody WxParameterSetting wxParameterSetting) {
|
||||||
|
return toAjax(wxParameterSettingService.insertWxParameterSetting(wxParameterSetting));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改微信参数配属
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:wxSetting:edit")
|
||||||
|
@Log(title = "微信参数配属", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody WxParameterSetting wxParameterSetting) {
|
||||||
|
return toAjax(wxParameterSettingService.updateWxParameterSetting(wxParameterSetting));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除微信参数配属
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:wxSetting:remove")
|
||||||
|
@Log(title = "微信参数配属", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(wxParameterSettingService.deleteWxParameterSettingByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.flossom.system.service;
|
||||||
|
|
||||||
|
import com.flossom.common.core.domain.entity.WxParameterSetting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 微信参数配属Service接口
|
||||||
|
*
|
||||||
|
* @author flossom
|
||||||
|
* @date 2023-12-13
|
||||||
|
*/
|
||||||
|
public interface IWxParameterSettingService {
|
||||||
|
/**
|
||||||
|
* 查询微信参数配属
|
||||||
|
*
|
||||||
|
* @param id 微信参数配属主键
|
||||||
|
* @return 微信参数配属
|
||||||
|
*/
|
||||||
|
public WxParameterSetting selectWxParameterSettingById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询微信参数配属列表
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 微信参数配属集合
|
||||||
|
*/
|
||||||
|
public List<WxParameterSetting> selectWxParameterSettingList(WxParameterSetting wxParameterSetting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增微信参数配属
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertWxParameterSetting(WxParameterSetting wxParameterSetting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改微信参数配属
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateWxParameterSetting(WxParameterSetting wxParameterSetting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除微信参数配属
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的微信参数配属主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWxParameterSettingByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除微信参数配属信息
|
||||||
|
*
|
||||||
|
* @param id 微信参数配属主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWxParameterSettingById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,90 @@
|
|||||||
|
package com.flossom.system.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.flossom.common.core.domain.entity.WxParameterSetting;
|
||||||
|
import com.flossom.common.core.utils.DateUtils;
|
||||||
|
import com.flossom.hzMapper.mapper.WxParameterSettingMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.flossom.system.service.IWxParameterSettingService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 微信参数配属Service业务层处理
|
||||||
|
*
|
||||||
|
* @author flossom
|
||||||
|
* @date 2023-12-13
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class WxParameterSettingServiceImpl implements IWxParameterSettingService {
|
||||||
|
@Autowired
|
||||||
|
private WxParameterSettingMapper wxParameterSettingMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询微信参数配属
|
||||||
|
*
|
||||||
|
* @param id 微信参数配属主键
|
||||||
|
* @return 微信参数配属
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public WxParameterSetting selectWxParameterSettingById(Long id) {
|
||||||
|
return wxParameterSettingMapper.selectWxParameterSettingById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询微信参数配属列表
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 微信参数配属
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<WxParameterSetting> selectWxParameterSettingList(WxParameterSetting wxParameterSetting) {
|
||||||
|
return wxParameterSettingMapper.selectWxParameterSettingList(wxParameterSetting);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增微信参数配属
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertWxParameterSetting(WxParameterSetting wxParameterSetting) {
|
||||||
|
wxParameterSetting.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return wxParameterSettingMapper.insertWxParameterSetting(wxParameterSetting);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改微信参数配属
|
||||||
|
*
|
||||||
|
* @param wxParameterSetting 微信参数配属
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateWxParameterSetting(WxParameterSetting wxParameterSetting) {
|
||||||
|
wxParameterSetting.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return wxParameterSettingMapper.updateWxParameterSetting(wxParameterSetting);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除微信参数配属
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的微信参数配属主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteWxParameterSettingByIds(Long[] ids) {
|
||||||
|
return wxParameterSettingMapper.deleteWxParameterSettingByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除微信参数配属信息
|
||||||
|
*
|
||||||
|
* @param id 微信参数配属主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteWxParameterSettingById(Long id) {
|
||||||
|
return wxParameterSettingMapper.deleteWxParameterSettingById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询微信参数配属列表
|
||||||
|
export function listWxSetting(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/wxSetting/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询微信参数配属详细
|
||||||
|
export function getWxSetting(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/wxSetting/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增微信参数配属
|
||||||
|
export function addWxSetting(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/wxSetting',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改微信参数配属
|
||||||
|
export function updateWxSetting(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/wxSetting',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除微信参数配属
|
||||||
|
export function delWxSetting(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/wxSetting/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue