u
This commit is contained in:
@@ -5,10 +5,11 @@ import { http } from './http.js';
|
||||
* Shape: LabelTemplate = { id, company_id, name, width, height, dpi, type, content, thumb }
|
||||
*/
|
||||
export const labeltemplate = {
|
||||
/** GET /api/labeltemplate → { labeltemplates: LabelTemplate[] } */
|
||||
/** GET /api/labeltemplate(?sku=...) → { labeltemplates: LabelTemplate[] } */
|
||||
// #region GET /api/labeltemplate — list
|
||||
list() {
|
||||
return http('/api/labeltemplate');
|
||||
list(params) {
|
||||
const search = params?.sku ? `?sku=${encodeURIComponent(params.sku)}` : '';
|
||||
return http(`/api/labeltemplate${search}`);
|
||||
},
|
||||
// #endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user