(name, limitType, remark)
| 2168 | return normalizeLuckmailTags(await request('GET', '/api/v1/openapi/email/tags')); |
| 2169 | }, |
| 2170 | async createTag(name, limitType, remark) { |
| 2171 | const body = { |
| 2172 | name: String(name || '').trim(), |
| 2173 | limit_type: Number(limitType) || 0, |
| 2174 | }; |
| 2175 | if (remark !== undefined) { |
| 2176 | body.remark = String(remark || '').trim(); |
| 2177 | } |
| 2178 | return normalizeLuckmailTags([await request('POST', '/api/v1/openapi/email/tags', { |
| 2179 | jsonData: body, |
| 2180 | })])[0] || null; |
| 2181 | }, |
| 2182 | }, |
| 2183 | }; |
| 2184 | } |
nothing calls this directly
no test coverage detected