import { Service } from '@zenview/micro-basic-library';
import { cache } from '@zenview/micro-utils';
const getHeaders = () => {
  return {
    Authorization: cache.getCache('token', 'session')
  }
}

class waterMarkService {
	/**
	 * @desc 查询水印
	 * @param {*} id
	 */
	getWaterMark (data) {
		return Service.$http({
			headers:getHeaders(),
			url: '/api/user/v2/watermark/rule/query/' + data.operationId + '/1',
			method: 'get',
			requestId: 'getWaterMark',
		});
	}
}
export default new waterMarkService();