• 此项目
    • 正在载入...
  • 登录

mmm-go / partner · 文件

转到一个项目

GitLab

  • 转到群组
  • 项目
  • 活动
  • 文件
  • 提交
  • 管道 0
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 0
  • 成员
  • 标记
  • 维基
  • 派生
  • 网络
  • 创建新的问题
  • partner
  • pkg
  • domain
  • company_applets.go
  • 版本 0.5.0 ...
    9951d57e
    1.支持管理层查看合伙人
        2.店铺图片可配置
    yangfu 在
    2020-11-16 09:49:48 +0800
    提交 浏览文件
company_applets.go 371 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package domain

type CompanyApplets struct {
	Name     string `json:"name"`
	URL      string `json:"url"`
	ImageUrl string `json:"imageUrl"`
	Id       string `json:"id"`
}

func (applets CompanyApplets) Valid() bool {
	if len(applets.Name) == 0 {
		return false
	}
	if len(applets.URL) == 0 {
		return false
	}
	if len(applets.Id) == 0 {
		return false
	}
	return true
}