gitee.com/larksuite/oapi-sdk-go/v3@v3.0.3/service/meeting_room/v1/model.go (about)

     1  // Package meeting_room code generated by oapi sdk gen
     2  /*
     3   * MIT License
     4   *
     5   * Copyright (c) 2022 Lark Technologies Pte. Ltd.
     6   *
     7   * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
     8   *
     9   * The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
    10   *
    11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    12   */
    13  
    14  package larkmeeting_room
    15  
    16  import (
    17  	"gitee.com/larksuite/oapi-sdk-go/v3/event"
    18  )
    19  
    20  type EventTime struct {
    21  	TimeStamp *int `json:"time_stamp,omitempty"` //
    22  }
    23  
    24  type EventTimeBuilder struct {
    25  	timeStamp     int //
    26  	timeStampFlag bool
    27  }
    28  
    29  func NewEventTimeBuilder() *EventTimeBuilder {
    30  	builder := &EventTimeBuilder{}
    31  	return builder
    32  }
    33  
    34  //
    35  //
    36  // 示例值:
    37  func (builder *EventTimeBuilder) TimeStamp(timeStamp int) *EventTimeBuilder {
    38  	builder.timeStamp = timeStamp
    39  	builder.timeStampFlag = true
    40  	return builder
    41  }
    42  
    43  func (builder *EventTimeBuilder) Build() *EventTime {
    44  	req := &EventTime{}
    45  	if builder.timeStampFlag {
    46  		req.TimeStamp = &builder.timeStamp
    47  
    48  	}
    49  	return req
    50  }
    51  
    52  type MeetingRoom struct {
    53  	RoomId *int `json:"room_id,omitempty"` // your description here
    54  }
    55  
    56  type MeetingRoomBuilder struct {
    57  	roomId     int // your description here
    58  	roomIdFlag bool
    59  }
    60  
    61  func NewMeetingRoomBuilder() *MeetingRoomBuilder {
    62  	builder := &MeetingRoomBuilder{}
    63  	return builder
    64  }
    65  
    66  // your description here
    67  //
    68  // 示例值:
    69  func (builder *MeetingRoomBuilder) RoomId(roomId int) *MeetingRoomBuilder {
    70  	builder.roomId = roomId
    71  	builder.roomIdFlag = true
    72  	return builder
    73  }
    74  
    75  func (builder *MeetingRoomBuilder) Build() *MeetingRoom {
    76  	req := &MeetingRoom{}
    77  	if builder.roomIdFlag {
    78  		req.RoomId = &builder.roomId
    79  
    80  	}
    81  	return req
    82  }
    83  
    84  type UserInfo struct {
    85  	OpenId *string `json:"open_id,omitempty"` //
    86  	UserId *string `json:"user_id,omitempty"` // 用户在ISV下的唯一标识,申请了"获取用户 user ID"权限后才会返回
    87  }
    88  
    89  type UserInfoBuilder struct {
    90  	openId     string //
    91  	openIdFlag bool
    92  	userId     string // 用户在ISV下的唯一标识,申请了"获取用户 user ID"权限后才会返回
    93  	userIdFlag bool
    94  }
    95  
    96  func NewUserInfoBuilder() *UserInfoBuilder {
    97  	builder := &UserInfoBuilder{}
    98  	return builder
    99  }
   100  
   101  //
   102  //
   103  // 示例值:
   104  func (builder *UserInfoBuilder) OpenId(openId string) *UserInfoBuilder {
   105  	builder.openId = openId
   106  	builder.openIdFlag = true
   107  	return builder
   108  }
   109  
   110  // 用户在ISV下的唯一标识,申请了"获取用户 user ID"权限后才会返回
   111  //
   112  // 示例值:
   113  func (builder *UserInfoBuilder) UserId(userId string) *UserInfoBuilder {
   114  	builder.userId = userId
   115  	builder.userIdFlag = true
   116  	return builder
   117  }
   118  
   119  func (builder *UserInfoBuilder) Build() *UserInfo {
   120  	req := &UserInfo{}
   121  	if builder.openIdFlag {
   122  		req.OpenId = &builder.openId
   123  
   124  	}
   125  	if builder.userIdFlag {
   126  		req.UserId = &builder.userId
   127  
   128  	}
   129  	return req
   130  }
   131  
   132  type P2MeetingRoomCreatedV1Data struct {
   133  	RoomName *string `json:"room_name,omitempty"` // 会议室名称
   134  	RoomId   *string `json:"room_id,omitempty"`   // 会议室 ID
   135  }
   136  
   137  type P2MeetingRoomCreatedV1 struct {
   138  	*larkevent.EventV2Base                             // 事件基础数据
   139  	*larkevent.EventReq                                // 请求原生数据
   140  	Event                  *P2MeetingRoomCreatedV1Data `json:"event"` // 事件内容
   141  }
   142  
   143  func (m *P2MeetingRoomCreatedV1) RawReq(req *larkevent.EventReq) {
   144  	m.EventReq = req
   145  }
   146  
   147  type P2MeetingRoomDeletedV1Data struct {
   148  	RoomName *string `json:"room_name,omitempty"` // 会议室名称
   149  	RoomId   *string `json:"room_id,omitempty"`   // 会议室 ID
   150  }
   151  
   152  type P2MeetingRoomDeletedV1 struct {
   153  	*larkevent.EventV2Base                             // 事件基础数据
   154  	*larkevent.EventReq                                // 请求原生数据
   155  	Event                  *P2MeetingRoomDeletedV1Data `json:"event"` // 事件内容
   156  }
   157  
   158  func (m *P2MeetingRoomDeletedV1) RawReq(req *larkevent.EventReq) {
   159  	m.EventReq = req
   160  }
   161  
   162  type P2MeetingRoomStatusChangedV1Data struct {
   163  	RoomName *string `json:"room_name,omitempty"` // 会议室名称
   164  	RoomId   *string `json:"room_id,omitempty"`   // 会议室 ID
   165  }
   166  
   167  type P2MeetingRoomStatusChangedV1 struct {
   168  	*larkevent.EventV2Base                                   // 事件基础数据
   169  	*larkevent.EventReq                                      // 请求原生数据
   170  	Event                  *P2MeetingRoomStatusChangedV1Data `json:"event"` // 事件内容
   171  }
   172  
   173  func (m *P2MeetingRoomStatusChangedV1) RawReq(req *larkevent.EventReq) {
   174  	m.EventReq = req
   175  }
   176  
   177  type P2MeetingRoomUpdatedV1Data struct {
   178  	RoomName *string `json:"room_name,omitempty"` // Meeting room name
   179  	RoomId   *string `json:"room_id,omitempty"`   // Meeting room ID
   180  }
   181  
   182  type P2MeetingRoomUpdatedV1 struct {
   183  	*larkevent.EventV2Base                             // 事件基础数据
   184  	*larkevent.EventReq                                // 请求原生数据
   185  	Event                  *P2MeetingRoomUpdatedV1Data `json:"event"` // 事件内容
   186  }
   187  
   188  func (m *P2MeetingRoomUpdatedV1) RawReq(req *larkevent.EventReq) {
   189  	m.EventReq = req
   190  }